public class LinkedHashMapParser extends ListParser
LinkedHashMap
structures. This includes parsing nested
lists and any objects that they might store.ARRAYCLASS
Constructor and Description |
---|
LinkedHashMapParser()
Creates a new instance of LinkedHashMapParser
|
Modifier and Type | Method and Description |
---|---|
static void |
elementToLinkedHashMap(java.util.LinkedHashMap data,
org.licas_xml.abs.Element paramXml)
Parse the information to return a LinkedHashMap of the values.
|
static void |
linkedHashMapToElement(java.util.LinkedHashMap data,
org.licas_xml.abs.Element rootElem)
Parse a LinkedHashMap to generate an xml representation.
|
java.lang.Object |
parse(org.licas_xml.abs.Element toParse)
Parse the information to return a list of the values.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Parse a LinkedHashMap to generate an xml representation.
|
createAddListObject, createAddMapObject, isList
public LinkedHashMapParser()
public java.lang.Object parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
toParse
- a description of the data.java.lang.Exception
- any error.public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize) throws java.lang.Exception
toSerialize
- the data list.java.lang.Exception
- any error.public static void elementToLinkedHashMap(java.util.LinkedHashMap data, org.licas_xml.abs.Element paramXml) throws java.lang.Exception
data
- the LinkedHashMap to store the data in.paramXml
- a description of the Const
.PARAMETER
data.java.lang.Exception
- any error.public static void linkedHashMapToElement(java.util.LinkedHashMap data, org.licas_xml.abs.Element rootElem) throws java.lang.Exception
data
- the data HashMap.rootElem
- the root element.java.lang.Exception
- any error.