public class VectorParser extends ListParser
Vector structures. This includes parsing nested
lists and any objects that they might store.ARRAYCLASS| Constructor and Description |
|---|
VectorParser()
Creates a new instance of VectorParser
|
| Modifier and Type | Method and Description |
|---|---|
static void |
elementToVector(java.util.Vector data,
org.licas_xml.abs.Element paramXml)
Parse the information to return a Vector of the values.
|
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)
Serialize a Vector to generate an xml representation.
|
static void |
vectorToElement(java.util.Vector data,
org.licas_xml.abs.Element rootElem)
Parse a Vector to generate a list of
Const.PARAMETER elements
and add them to the root element. |
createAddListObject, createAddMapObject, isListpublic 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 elementToVector(java.util.Vector data,
org.licas_xml.abs.Element paramXml)
throws java.lang.Exception
data - the vector to add the values to.paramXml - a description of the Const.PARAMETER data.java.lang.Exception - any error.public static void vectorToElement(java.util.Vector data,
org.licas_xml.abs.Element rootElem)
throws java.lang.Exception
Const.PARAMETER elements
and add them to the root element.data - the data vector.rootElem - the root element to add the parameter descriptions to.java.lang.Exception - any error.