simkin
Class XMLExecutable

java.lang.Object
  |
  +--simkin.ExecutableRoot
        |
        +--simkin.XMLElementObject
              |
              +--simkin.XMLExecutable
All Implemented Interfaces:
Executable
Direct Known Subclasses:
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
copyItemsInto, dump, enumerate, enumerate, equals, findChild, findChild, getAttribute, getData, getElement, getValue, method, setAttribute, setData, setValue, toString
 
Methods inherited from class simkin.ExecutableRoot
setTracer
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 stream
java.io.IOException - where there was an error loading the stream
Method Detail

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