public class NestedElementEncoder extends XmlElement
<listName> <entry key="k1">val1</entry> <entry key="k2">val2</entry> <entry key="k3">val3</entry> </listName>This can be also add compounded Elements
e.g.:<listName> <entry key="time"> <dimensionInfo> <enabled>false</enabled> </dimensionInfo> </entry> <entry key="elevation"> <dimensionInfo> <enabled>true</enabled> <attribute>ele</attribute> <presentation>LIST</presentation> </dimensionInfo> </entry> </listName>This can be also add list of compounded Elements
} AllowMultithreading false true ele LIST
| Constructor and Description |
|---|
NestedElementEncoder(String listName) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
org.jdom.Element value) |
void |
add(String key,
List<org.jdom.Element> list) |
void |
add(String key,
String value) |
boolean |
remove(String key) |
void |
set(String key,
org.jdom.Element value) |
void |
set(String key,
List<org.jdom.Element> value) |
void |
set(String key,
String value) |
add, addContent, getRoot, isEmpty, set, setRoot, setRoot, toStringpublic static final String ENTRY
public static final String KEY
public NestedElementEncoder(String listName)
public void set(String key, String value)
set in class XmlElementpublic void set(String key, org.jdom.Element value)
public void add(String key, org.jdom.Element value)
public void add(String key, String value)
add in class XmlElementpublic boolean remove(String key)
remove in class XmlElementCopyright © 2007–2016 PDOK. All rights reserved.