public abstract class ListParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
HashMap and the ArrayList parsers.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARRAYCLASS
Defines an array class
|
| Constructor and Description |
|---|
ListParser()
Creates a new instance of ListParser
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
createAddListObject(java.util.List data,
java.lang.String type,
java.lang.String value,
org.licas_xml.abs.Element rootElem)
Create and add the object as specified by the parameters.
|
protected static void |
createAddMapObject(java.util.Map data,
java.lang.String type,
java.lang.String key,
java.lang.String value,
org.licas_xml.abs.Element rootElem)
Create and add the object as specified by the parameters.
|
static boolean |
isList(java.lang.Class param1,
org.licas_xml.abs.Element xmlElem)
Return true if the xml element is a parsed list of the same type as the
class passed in.
|
public static final java.lang.String ARRAYCLASS
protected static void createAddListObject(java.util.List data,
java.lang.String type,
java.lang.String value,
org.licas_xml.abs.Element rootElem)
throws java.lang.Exception
data - the list to store the data in.type - the object type.value - the object value if there is one.rootElem - root element if need to parse further.java.lang.Exception - any error.protected static void createAddMapObject(java.util.Map data,
java.lang.String type,
java.lang.String key,
java.lang.String value,
org.licas_xml.abs.Element rootElem)
throws java.lang.Exception
data - the map to store the data in.type - the object type.key - the entry key.value - the object value if there is one.rootElem - root element if need to parse further.java.lang.Exception - any error.public static boolean isList(java.lang.Class param1,
org.licas_xml.abs.Element xmlElem)
param1 - the parameter class to compare.xmlElem - the xml element.