simkin.examples.inherits
Class InheritsElement

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

public class InheritsElement
extends XMLElementObject

this class extends the XMLElementObject class with understanding of the <inherits> tag. It overrides the createXMLElementObject method to make sure that any sub-elements are also checked.


Constructor Summary
InheritsElement(java.lang.String location, org.w3c.dom.Element elem)
          Constructor - passes element up to its parent
 
Method Summary
protected  XMLElementObject createXMLElementObject(java.lang.String location, org.w3c.dom.Element element)
          overrides this method so that sub-elements also understand the inherits tag
static void replaceInherits(org.w3c.dom.Element elem)
          this method replaces any <inherits> tags with the equivalent XML file
protected  void setElement(org.w3c.dom.Element elem)
          extends this method to check for inherits tags after the element has been set
 
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

InheritsElement

public InheritsElement(java.lang.String location,
                       org.w3c.dom.Element elem)
Constructor - passes element up to its parent

Method Detail

createXMLElementObject

protected XMLElementObject createXMLElementObject(java.lang.String location,
                                                  org.w3c.dom.Element element)
overrides this method so that sub-elements also understand the inherits tag

Overrides:
createXMLElementObject in class XMLElementObject

setElement

protected void setElement(org.w3c.dom.Element elem)
extends this method to check for inherits tags after the element has been set

Overrides:
setElement in class XMLElementObject
Parameters:
elem - - the new Element

replaceInherits

public static void replaceInherits(org.w3c.dom.Element elem)
this method replaces any <inherits> tags with the equivalent XML file