Supply a getTemplateXXX for the specific node type.
There are two basic interfaces for implementing LazyDOM nodes:
LazyNode and LazyParent, with LazyParent extended LazyNode.
They have the following properties:
- Only LazyParent nodes can contain other nodes.
- Only LazyParent nodes can exist with out their parent being
expanded.
- All children of a LazyParent are expanded if one of the children
is expanded.
- If a LazyNode that is not a LazyParent is expanded, its siblings
are expanded.
- If a LazyParent's parent is expanded, its siblings are expanded.
- If a LazyParent's parent is not expanded, its siblings may or may not
be expanded.
Field Summary |
static int |
DOCUMENT_NODE_ID
Node id returned for the Document node. |
static int |
NULL_NODE_ID
Constant to indicate an node does not have an id. |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
Methods inherited from interface org.w3c.dom.Node |
appendChild,
cloneNode,
getAttributes,
getChildNodes,
getFirstChild,
getLastChild,
getLocalName,
getNamespaceURI,
getNextSibling,
getNodeName,
getNodeType,
getNodeValue,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
hasAttributes,
hasChildNodes,
insertBefore,
normalize,
removeChild,
replaceChild,
setNodeValue,
setPrefix,
supports |
NULL_NODE_ID
public static final int NULL_NODE_ID
- Constant to indicate an node does not have an id.
DOCUMENT_NODE_ID
public static final int DOCUMENT_NODE_ID
- Node id returned for the Document node.
makeTemplateNode
public void makeTemplateNode(int nodeId)
getNodeId
public int getNodeId()
- Get the node numeric id number.
isTemplateNode
public boolean isTemplateNode()
- Check if this node is a template node.
getTemplateNode
public LazyNode getTemplateNode()
- Get the template node as a LazyNode.
templateClone
public LazyNode templateClone(Document ownerDocument)
- Create a new node, using this node as the template.