com.silanis.esl.sdk.DocumentPackageAttributes Maven / Gradle / Ivy
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;
}
}