org.autoplot.state.StatePersistence
Class for serializing and deserializing application configuration.
currentScheme
currentScheme( ) → AbstractVapScheme
return the current DOM version, describing the scheme of the DOM.
Returns:
an org.autoplot.state.AbstractVapScheme
[search for examples]
[view on GitHub]
[view on old javadoc]
getChildElement
getChildElement( org.w3c.dom.Element parent, String tagName ) → Element
return the first child, if any, with the given tag name.
Parameters
parent - the node of the tree.
tagName - the node to look for.
Returns:
return the child or null if no such child exists.
[search for examples]
[view on GitHub]
[view on old javadoc]
restoreState
restoreState( java.io.File f ) → Object
restore the XML file, possibly promoting it.
Parameters
f - the xml vap file.
Returns:
the dom object.
[search for examples]
[view on GitHub]
[view on old javadoc]
restoreState( java.io.InputStream in, java.util.LinkedHashMap deltas ) → Application
restoreState( java.io.InputStream in ) → Object
saveState
saveState( java.io.File f, Object state ) → void
Parameters
f - a File
state - an Object
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
saveState( java.io.File f, Object state, String sscheme ) → void
saveState( java.io.OutputStream out, Object state, String sscheme ) → void
writeDocument
writeDocument( java.io.OutputStream out, org.w3c.dom.Document document ) → void
write the document out to the file, hiding the details of the serializer.
Parameters
out - outputStream
document - XML document object
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
writeDocument( java.io.File f, org.w3c.dom.Document document ) → void