org.autoplot.state.SerializeUtil

Utility class for creating a Document from a DomNode. Note that there is special handling for:

There may be other exceptional properties that are not documented here.

SerializeUtil( )


getDomElement

getDomElement( org.w3c.dom.Document document, org.autoplot.dom.DomNode node, org.autoplot.state.VapScheme scheme ) → Element

Return the XML for the node.

Parameters

document - the document to which the node is added.
node - the dom node (Application, Plot, PlotElement, etc.)
scheme - the version of the vap that we are writing. This identifies the scheme, but also provides names for nodes.

Returns:

the Document (XML) element for the node.

[search for examples] [view on GitHub] [view on old javadoc]

getDomElement( org.w3c.dom.Document document, org.autoplot.dom.DomNode node, org.autoplot.state.VapScheme scheme, boolean includeDefaults ) → Element

getDomNode

getDomNode( org.w3c.dom.Element element, org.autoplot.state.VapScheme scheme ) → DomNode

decode the DomNode from the document element.

Parameters

element - the DOM element
scheme - the current version

Returns:

an org.autoplot.dom.DomNode

[search for examples] [view on GitHub] [view on old javadoc]


getElementForLeafNode

getElementForLeafNode( org.w3c.dom.Document document, java.lang.Class propClass, Object value, Object defltValue ) → Element

return the Element, or null if we can't handle it

Parameters

document - a Document
propClass - a java.lang.Class
value - an Object
defltValue - an Object

Returns:

an org.w3c.dom.Element

[search for examples] [view on GitHub] [view on old javadoc]


getLeafNode

getLeafNode( org.w3c.dom.Element element ) → Object

Parameters

element - an Element

Returns:

java.lang.Object

[search for examples] [view on GitHub] [view on old javadoc]