org.enhydra.xml.lazydom
Class TemplateDOM
java.lang.Object
|
+--org.enhydra.xml.lazydom.TemplateDOM
- public final class TemplateDOM
- extends Object
Class used to contain hold a Template DOM that is shared by all instance
of the document. This assign node ids to all nodes in the template,
mark them as template nodes and makes them read-only.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fTemplateDocument
LazyDocument fTemplateDocument
- The template document, marked readonly
TemplateDOM
public TemplateDOM(LazyDocument templateDocument)
- Constructor.
getMaxNodeId
public final int getMaxNodeId()
- Get the maximum node id.
getNode
public final LazyNode getNode(int nodeId)
- Get a node, given an id.
- Parameters:
nodeId
- A valid node id for this document, or NULL_NODE_ID.- Returns:
- The template node, or null if NULL_NODE_ID was specified.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.