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

com.silanis.esl.sdk.DocumentPackageAttributes Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
package com.silanis.esl.sdk;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * User: jessica
 * Date: 29/10/13
 * Time: 3:15 PM
 */
public class DocumentPackageAttributes {

    private Map contents = new LinkedHashMap();

    public DocumentPackageAttributes() {
    }

    public void append( String name, Object value ) {
        if (null == contents) {
            contents = new LinkedHashMap();
        }
        contents.put(name, value);
    }

    public void append( DocumentPackageAttributes attributes ) {
        if (null == contents) {
            contents = new LinkedHashMap();
        }
        if(null != attributes && null != attributes.getContents()) {
            contents.putAll(attributes.getContents());
        }
    }

    public Map getContents() {
        return contents;
    }

    public void setContents(Map contents) {
        this.contents = contents;
    }

    public Map toMap() {
        return contents;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy