[[#variable113688e0]]void set(String key, String value) {
Element child = getParentElement().getChild(key);
if (child == null) {
child = new Element(key);
getParentElement().addContent(child);
}
child.setText(value);
}
[[#variable113688e0]]void set(String key, String prefix, String value) {
Element child = getParentElement().getChild(key);
if (child == null) {
child = new Element(key);
getParentElement().addContent(child);
}
Element prefixchild = child.getChild(prefix);
if (prefixchild == null) {
prefixchild = new Element(prefix);
child.addContent(prefixchild);
}
prefixchild.setText(value);
}
[[#variable113688e0]]String get(String key) {
Element child = getParentElement().getChild(key);
if (child == null) {
child = new Element(key);
getParentElement().addContent(child);
}
return child.getTextNormalize();
}
[[#variable113688e0]]String get(String key, String prefix) {
Element child = getParentElement().getChild(key);
if (child == null) {
child = new Element(key);
getParentElement().addContent(child);
}
Element prefixchild = child.getChild(prefix);
if (prefixchild == null) {
prefixchild = new Element(prefix);
child.addContent(prefixchild);
}
return prefixchild.getTextNormalize();
}
/**
* @see org.columba.calendar.model.api.IBasicModel#getDocument()
*/
public Document getDocument() {
return doc;
}
/**
* @return Returns the id.
*/
public String getId() {
return get( [[#variable11368860]]. [[#variable11368800]]);
}
public void setId(String id) {
set( [[#variable11368860]]. [[#variable11368800]], id);
}
|