public class XMLBasicSerialization extends XMLSerialization
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VAL_CELLS
the matrix cells
|
static java.lang.String |
VAL_KEY
the value for a mapping-key, e.g., Maps
|
static java.lang.String |
VAL_MAPPING
the value for mapping, e.g., Maps
|
static java.lang.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
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.Object |
readCollection(org.w3c.dom.Element node)
builds the Collection from the given DOM node.
|
java.lang.Object |
readColor(org.w3c.dom.Element node)
builds the Color object from the given DOM node.
|
java.lang.Object |
readCostMatrix(org.w3c.dom.Element node)
builds the Matrix from the given DOM node.
|
java.lang.Object |
readCostMatrixOld(org.w3c.dom.Element node)
builds the Matrix (old) from the given DOM node.
|
java.lang.Object |
readDefaultListModel(org.w3c.dom.Element node)
builds the DefaultListModel from the given DOM node.
|
java.lang.Object |
readMap(org.w3c.dom.Element node)
builds the Map from the given DOM node.
|
java.lang.Object |
readMatrix(org.w3c.dom.Element node)
builds the Matrix from the given DOM node.
|
java.lang.Object |
readMatrixOld(org.w3c.dom.Element node)
builds the Matrix (old) from the given DOM node.
|
org.w3c.dom.Element |
writeCollection(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.String name)
adds the given Collection to a DOM structure.
|
org.w3c.dom.Element |
writeColor(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.String name)
adds the given Color to a DOM structure.
|
org.w3c.dom.Element |
writeCostMatrix(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.String name)
adds the given CostMatrix to a DOM structure.
|
org.w3c.dom.Element |
writeCostMatrixOld(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.String name)
adds the given CostMatrix (old) to a DOM structure.
|
org.w3c.dom.Element |
writeDefaultListModel(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.String name)
adds the given DefaultListModel to a DOM structure.
|
org.w3c.dom.Element |
writeMap(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.String name)
adds the given Map to a DOM structure.
|
org.w3c.dom.Element |
writeMatrix(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.String name)
adds the given Matrix to a DOM structure.
|
org.w3c.dom.Element |
writeMatrixOld(org.w3c.dom.Element parent,
java.lang.Object o,
java.lang.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 java.lang.String VAL_MAPPING
public static final java.lang.String VAL_KEY
public static final java.lang.String VAL_VALUE
public static final java.lang.String VAL_CELLS
public XMLBasicSerialization() throws java.lang.Exception
java.lang.Exception
- if initialization failspublic void clear() throws java.lang.Exception
clear
in class XMLSerialization
java.lang.Exception
- if initializing failspublic org.w3c.dom.Element writeColor(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsColor
public java.lang.Object readColor(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsColor
public org.w3c.dom.Element writeDefaultListModel(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsDefaultListModel
public java.lang.Object readDefaultListModel(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsDefaultListModel
public org.w3c.dom.Element writeCollection(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsCollection
public java.lang.Object readCollection(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsCollection
public org.w3c.dom.Element writeMap(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsMap
public java.lang.Object readMap(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsMap
public org.w3c.dom.Element writeCostMatrix(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsCostMatrix
public java.lang.Object readCostMatrix(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsCostMatrix
public org.w3c.dom.Element writeMatrix(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsMatrix
public java.lang.Object readMatrix(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsMatrix
public org.w3c.dom.Element writeMatrixOld(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsMatrix
public java.lang.Object readMatrixOld(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsMatrix
public org.w3c.dom.Element writeCostMatrixOld(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.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 objectjava.lang.Exception
- if the DOM creation failsCostMatrix
public java.lang.Object readCostMatrixOld(org.w3c.dom.Element node) throws java.lang.Exception
node
- the associated XML nodejava.lang.Exception
- if instantiation failsCostMatrix
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class XMLSerialization