|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--simkin.ExecutableRoot | +--simkin.XMLElementObject | +--simkin.examples.inherits.InheritsElement
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 |
public InheritsElement(java.lang.String location, org.w3c.dom.Element elem)
Method Detail |
protected XMLElementObject createXMLElementObject(java.lang.String location, org.w3c.dom.Element element)
createXMLElementObject
in class XMLElementObject
protected void setElement(org.w3c.dom.Element elem)
setElement
in class XMLElementObject
elem
- - the new Elementpublic static void replaceInherits(org.w3c.dom.Element elem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |