org.enhydra.xml.xmlc.compiler
Class EditDOM

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.compiler.EditDOM

public class EditDOM
extends java.lang.Object

Class to perform edits on a DOM.


Constructor Summary
EditDOM(MetaData metaData)
          Constructor.
 
Method Summary
 void edit(XMLCDocument xmlcDoc)
          Edit the nodes of the document.
protected  org.w3c.dom.Node editElement(org.w3c.dom.Element element)
          Edit a single element.
protected  java.lang.String getElementId(org.w3c.dom.Element element)
          Get the ID of an element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditDOM

public EditDOM(MetaData metaData)
Constructor.

Method Detail

editElement

protected org.w3c.dom.Node editElement(org.w3c.dom.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.
XMLCException

edit

public void edit(XMLCDocument xmlcDoc)
          throws XMLCException
Edit the nodes of the document.

XMLCException

getElementId

protected java.lang.String getElementId(org.w3c.dom.Element element)
Get the ID of an element



Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.