|
|||||||||
| Home >> All >> org >> enhydra >> xml >> [ lazydom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.enhydra.xml.lazydom
Interface LazyNode

- All Superinterfaces:
- org.w3c.dom.Node
- All Known Subinterfaces:
- LazyAttr, LazyElement, LazyParent
- All Known Implementing Classes:
- LazyAttrNoNS, LazyAttrNS, LazyCDATASection, LazyComment, LazyDocument, LazyDocumentType, LazyElementNoNS, LazyElementNS, LazyEntity, LazyEntityReference, LazyNotation, LazyProcessingInstruction, LazyText
- public interface LazyNode
- extends org.w3c.dom.Node
Interface use to define Lazy DOM methods that apply to every node. In addition to these methods, each node must:
- Supply a getTemplateXXX for the specific node type.
- 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.
There are two basic interfaces for implementing LazyDOM nodes: LazyNode and LazyParent, with LazyParent extended LazyNode. They have the following properties:
Field Summary static intDOCUMENT_NODE_ID
Node id returned for the Document node.static intNULL_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_NODEMethod Summary intgetNodeId()
Get the node numeric id number.LazyNodegetTemplateNode()
Get the template node as a LazyNode.booleanisTemplateNode()
Check if this node is a template node.voidmakeTemplateNode(int nodeId)
LazyNodetemplateClone(org.w3c.dom.Document ownerDocument)
Create a new node, using this node as the template.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, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefixField Detail NULL_NODE_ID
public static final int NULL_NODE_ID
- Constant to indicate an node does not have an id.
- See Also:
- Constant Field Values
DOCUMENT_NODE_ID
public static final int DOCUMENT_NODE_ID
- Node id returned for the Document node.
- See Also:
- Constant Field Values
Method Detail 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(org.w3c.dom.Document ownerDocument)
- Create a new node, using this node as the template.
Overview Package Class Use Deprecated Index Home >> All >> org >> enhydra >> xml >> [ lazydom overview ] PREV CLASS NEXT CLASS SUMMARY:
JAVADOC |
SOURCE |
DOWNLOAD | NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD