All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eurodyn.qlack2.fuse.chatim.api.dto.AttributeDTO Maven / Gradle / Ivy

/*
* Copyright 2014 EUROPEAN DYNAMICS SA 
*
* Licensed under the EUPL, Version 1.1 only (the "License").
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package com.eurodyn.qlack2.fuse.chatim.api.dto;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author European Dynamics SA
 */
public class AttributeDTO implements Serializable {

    private static final long serialVersionUID = -4465643192637918032L;
    private Map attribute = new HashMap();

    /**
     * @param key
     * @return the attribute
     */
    public Object clearAttribute(String key) {
        return this.getAttribute().remove(key);
    }

    /**
     * @param key
     * @return the attribute
     */
    public Object getAttribute(String key) {
        return this.getAttribute().get(key);
    }

    /**
     * @param key
     * @param value
     */
    public void setAttribute(String key, Object value) {
        this.getAttribute().put(key, value);
    }

    /**
     * @return the attribute
     */
    public Map getAttribute() {
        return attribute;
    }

    /**
     * @param attribute the attribute to set
     */
    public void setAttribute(Map attribute) {
        this.attribute = attribute;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy