Enhydra 3.1 API

org.enhydra.xml.lazydom
Class TemplateDOM

java.lang.Object
  |
  +--org.enhydra.xml.lazydom.TemplateDOM

public final class TemplateDOM
extends java.lang.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.


Constructor Summary
TemplateDOM(LazyDocument templateDocument)
          Constructor.
 
Method Summary
 int getMaxNodeId()
          Get the maximum node id.
 LazyNode getNode(int nodeId)
          Get a node, given an id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateDOM

public TemplateDOM(LazyDocument templateDocument)
Constructor.
Method Detail

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.

Enhydra 3.1 API