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 |
readColor(Element node)
builds the Color object from the given DOM node.
|
Object |
readCostMatrix(Element node)
builds the Matrix 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 |
writeColor(Element parent,
Object o,
String name)
adds the given Color to a DOM structure.
|
Element |
writeCostMatrix(Element parent,
Object o,
String name)
adds the given CostMatrix 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, setSuppressWarnings, toXML, write, write, write, write, writeToXML
public 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 XMLSerialization
Exception
- if initializing failspublic Element writeColor(Element parent, Object o, String name) throws Exception
public Object readColor(Element node) throws Exception
public 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 failsDefaultListModel
public Object readDefaultListModel(Element node) throws Exception
node
- the associated XML nodeException
- if instantiation failsDefaultListModel
public 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 failsCollection
public Object readCollection(Element node) throws Exception
node
- the associated XML nodeException
- if instantiation failsCollection
public Element writeMap(Element parent, Object o, String name) throws Exception
public Object readMap(Element node) throws Exception
public Element writeCostMatrix(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 failsCostMatrix
public Object readCostMatrix(Element node) throws Exception
node
- the associated XML nodeException
- if instantiation failsCostMatrix
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 failsCostMatrix
public Object readCostMatrixOld(Element node) throws Exception
node
- the associated XML nodeException
- if instantiation failsCostMatrix
public String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class XMLSerialization
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.