public class SequencePersistent extends java.lang.Object implements XMLPersistent
Constructor and Description |
---|
SequencePersistent(Sequence sequence) |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Node |
getNode(java.lang.String name)
Get XML data node identified by specified name
|
org.w3c.dom.Node |
getRootNode()
Get Sequence XML root node
|
static boolean |
isValidXMLPersitence(org.w3c.dom.Document doc)
Returns
true if the specified Document represents a valid XML persistence document. |
static boolean |
isValidXMLPersitence(java.lang.String path)
Returns
true if the specified path represents a valid XML persistence file. |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
loadXMLData()
Load XML persistent data.
|
void |
refreshXMLData() |
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
boolean |
saveXMLData()
Save XML persistent data.
|
org.w3c.dom.Node |
setNode(java.lang.String name)
Create a new node with specified name and return it.
|
public SequencePersistent(Sequence sequence)
public boolean loadXMLData()
public boolean saveXMLData() throws java.lang.Exception
java.lang.Exception
public void refreshXMLData()
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
public org.w3c.dom.Node getRootNode()
public org.w3c.dom.Node getNode(java.lang.String name)
name
- name of wanted nodepublic org.w3c.dom.Node setNode(java.lang.String name)
name
- name of node to set in attached XML datapublic static boolean isValidXMLPersitence(org.w3c.dom.Document doc)
true
if the specified Document represents a valid XML persistence document.public static boolean isValidXMLPersitence(java.lang.String path)
true
if the specified path represents a valid XML persistence file.