simkin
Class XMLExecutable
java.lang.Object
|
+--simkin.ExecutableRoot
|
+--simkin.XMLElementObject
|
+--simkin.XMLExecutable
- All Implemented Interfaces:
- Executable
- Direct Known Subclasses:
- ArrayExample, ScriptedDialog, ScriptedDialog
- public class XMLExecutable
- extends XMLElementObject
This class is a base class for objects which store their data and methods in an XML document
Each instance is associated with an XML document which is loaded on construction.
Constructor Summary |
XMLExecutable()
Default Constructor. |
XMLExecutable(java.io.InputStream in)
Constructor taking an input stream containing an XML document |
Method Summary |
void |
load(java.io.InputStream in)
This method causes the XML to be reloaded |
void |
save(java.io.OutputStream out)
Call this method to save the state of the object back to a stream |
Methods inherited from class simkin.XMLElementObject |
addElement, containsElement, copyAttributesInto, copyItemsInto, dump, enumerate, enumerate, equals, findChild, findChild, findChild, getAttribute, getData, getElement, getValue, getValueAt, method, setAttribute, setData, setValue, setValueAt, tagName, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLExecutable
public XMLExecutable()
- Default Constructor.
XMLExecutable
public XMLExecutable(java.io.InputStream in)
throws org.xml.sax.SAXException,
java.io.IOException
- Constructor taking an input stream containing an XML document
- Throws:
org.xml.sax.SAXException
- where there was a syntax error in the XML streamjava.io.IOException
- where there was an error loading the stream
load
public void load(java.io.InputStream in)
throws org.xml.sax.SAXException,
java.io.IOException
- This method causes the XML to be reloaded
- Parameters:
in
- - stream containing the XML
save
public void save(java.io.OutputStream out)
throws java.io.IOException
- Call this method to save the state of the object back to a stream
- Throws:
java.io.IOException
- if there was an error writing to the stream