simkin.examples.inherits
Class InheritsExecutable

java.lang.Object
  |
  +--simkin.ExecutableRoot
        |
        +--simkin.XMLElementObject
              |
              +--simkin.examples.inherits.InheritsElement
                    |
                    +--simkin.examples.inherits.InheritsExecutable
All Implemented Interfaces:
Executable

public class InheritsExecutable
extends InheritsElement

This class loads an XML file and makes sure any <inherits> tags are resolved.


Constructor Summary
InheritsExecutable(java.lang.String location, java.io.InputStream in)
          Constructor taking an input stream containing an XML document
 
Method Summary
 void load(java.io.InputStream in)
          This method is overriden to search for the inherits tag
 
Methods inherited from class simkin.examples.inherits.InheritsElement
createXMLElementObject, replaceInherits, setElement
 
Methods inherited from class simkin.XMLElementObject
addElement, containsElement, copyAttributesInto, copyItemsInto, createIterator, createIterator, dump, enumerate, enumerate, equals, findChild, findChild, findChild, getAddIfNotPresent, getAttribute, getAttributes, getData, getElement, getInstanceVariables, getLocation, getSource, getValue, getValueAt, method, setAddIfNotPresent, setAttribute, setData, setValue, setValueAt, tagName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InheritsExecutable

public InheritsExecutable(java.lang.String location,
                          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 is overriden to search for the inherits tag

Parameters:
in - - stream containing the XML
org.xml.sax.SAXException
java.io.IOException