public class XMLBasicSerialization extends XMLSerialization
| Modifier and Type | Field and Description |
|---|---|
static String |
VAL_CELLS
the matrix cells
|
static String |
VAL_KEY
the value for a mapping-key, e.g., Maps
|
static String |
VAL_MAPPING
the value for mapping, e.g., Maps
|
static String |
VAL_VALUE
the value for mapping-value, e.g., Maps
|
ATT_ARRAY, ATT_ARRAY_DEFAULT, ATT_CLASS, ATT_NAME, ATT_NULL, ATT_NULL_DEFAULT, ATT_PRIMITIVE, ATT_PRIMITIVE_DEFAULT, ATT_VERSION, DOCTYPE, ROOT_NODE, SUPPRESS_PROPERTY_WARNINGS, TAG_OBJECT, VAL_NO, VAL_ROOT, VAL_YES| Constructor and Description |
|---|
XMLBasicSerialization()
initializes the serialization
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
generates internally a new XML document and clears also the IgnoreList and
the mappings for the Read/Write-Methods
|
String |
getRevision()
Returns the revision string.
|
Object |
readCollection(Element node)
builds the Collection from the given DOM node.
|
Object |
readCostMatrixOld(Element node)
builds the Matrix (old) from the given DOM node.
|
Object |
readDefaultListModel(Element node)
builds the DefaultListModel from the given DOM node.
|
Object |
readMap(Element node)
builds the Map from the given DOM node.
|
Object |
readMatrix(Element node)
builds the Matrix from the given DOM node.
|
Object |
readMatrixOld(Element node)
builds the Matrix (old) from the given DOM node.
|
Element |
writeCollection(Element parent,
Object o,
String name)
adds the given Collection to a DOM structure.
|
Element |
writeCostMatrixOld(Element parent,
Object o,
String name)
adds the given CostMatrix (old) to a DOM structure.
|
Element |
writeDefaultListModel(Element parent,
Object o,
String name)
adds the given DefaultListModel to a DOM structure.
|
Element |
writeMap(Element parent,
Object o,
String name)
adds the given Map to a DOM structure.
|
Element |
writeMatrix(Element parent,
Object o,
String name)
adds the given Matrix to a DOM structure.
|
Element |
writeMatrixOld(Element parent,
Object o,
String name)
adds the given Matrix (old) to a DOM structure.
|
fromXML, getVersion, main, read, read, read, read, readBooleanFromXML, readByteFromXML, readCharFromXML, readDoubleFromXML, readFloatFromXML, readFromXML, readFromXML, readIntFromXML, readLongFromXML, readShortFromXML, toXML, write, write, write, write, writeToXMLpublic static final String VAL_MAPPING
public static final String VAL_KEY
public static final String VAL_VALUE
public static final String VAL_CELLS
public void clear()
throws Exception
clear in class XMLSerializationException - if initializing failspublic Element writeDefaultListModel(Element parent, Object o, String name) throws Exception
parent - the parent of this object, e.g. the class this object is a
member ofo - the Object to describe in XMLname - the name of the objectException - if the DOM creation failsDefaultListModelpublic Object readDefaultListModel(Element node) throws Exception
node - the associated XML nodeException - if instantiation failsDefaultListModelpublic Element writeCollection(Element parent, Object o, String name) throws Exception
parent - the parent of this object, e.g. the class this object is a
member ofo - the Object to describe in XMLname - the name of the objectException - if the DOM creation failsCollectionpublic Object readCollection(Element node) throws Exception
node - the associated XML nodeException - if instantiation failsCollectionpublic Element writeMap(Element parent, Object o, String name) throws Exception
public Object readMap(Element node) throws Exception
public Element writeMatrix(Element parent, Object o, String name) throws Exception
public Object readMatrix(Element node) throws Exception
public Element writeMatrixOld(Element parent, Object o, String name) throws Exception
public Object readMatrixOld(Element node) throws Exception
public Element writeCostMatrixOld(Element parent, Object o, String name) throws Exception
parent - the parent of this object, e.g. the class this object is a
member ofo - the Object to describe in XMLname - the name of the objectException - if the DOM creation failsCostMatrixpublic Object readCostMatrixOld(Element node) throws Exception
node - the associated XML nodeException - if instantiation failsCostMatrixpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class XMLSerializationCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.