org.enhydra.xml.xmlc.compiler
Class EditDOM
java.lang.Object
|
+--org.enhydra.xml.xmlc.compiler.EditDOM
- public class EditDOM
- extends Object
Class to perform edits on a DOM.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditDOM
public EditDOM(MetaData metaData)
- Constructor.
editElement
protected Node editElement(Element element)
throws XMLCException
- Edit a single element. If you override this method, don't
forget to call
super.editElement(element)
to
perform the standard edits. Derived classes may replace
element
by another node in their version of
editElement
. In this case, the
editElement() method must return the new node in order
for the editor code to pick up and edit children of this new node.
- Returns:
element
, or null
to indicate
that the children of this element should not be processed.
edit
public void edit(XMLCDocument xmlcDoc)
throws XMLCException
- Edit the nodes of the document.
getElementId
protected String getElementId(Element element)
- Get the ID of an element
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.