org.enhydra.apache.xerces.dom
Class DeferredElementNSImpl
java.lang.Object
|
+--org.enhydra.apache.xerces.dom.NodeImpl
|
+--org.enhydra.apache.xerces.dom.ChildNode
|
+--org.enhydra.apache.xerces.dom.ParentNode
|
+--org.enhydra.apache.xerces.dom.ElementImpl
|
+--org.enhydra.apache.xerces.dom.ElementNSImpl
|
+--org.enhydra.apache.xerces.dom.DeferredElementNSImpl
- All Implemented Interfaces:
- Cloneable, DeferredNode, Element, EventTarget, Node, NodeList, Serializable
- public class DeferredElementNSImpl
- extends ElementNSImpl
- implements DeferredNode
DeferredElementNSImpl is to ElementNSImpl, what DeferredElementImpl is to
ElementImpl.
- See Also:
DeferredElementImpl
,
Serialized Form
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
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 |
Method Summary |
int |
getNodeIndex()
Returns the node index. |
protected void |
synchronizeChildren()
Synchronizes the node's children with the internal structure.
|
protected void |
synchronizeData()
Synchronizes the data (name and value) for fast nodes. |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, insertBefore, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, removeChild, replaceChild |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, dispatchEvent, getNodeValue, getReadOnly, getUserData, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSpecified, isSpecified, isSupported, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setUserData, toString |
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, setPrefix |
serialVersionUID
static final long serialVersionUID
- Serialization version.
- See Also:
- Constant Field Values
fNodeIndex
protected transient int fNodeIndex
- Node index.
DeferredElementNSImpl
DeferredElementNSImpl(DeferredDocumentImpl ownerDoc,
int nodeIndex)
- This is the deferred constructor. Only the fNodeIndex is given here. All
other data, can be requested from the ownerDocument via the index.
getNodeIndex
public final int getNodeIndex()
- Returns the node index.
- Specified by:
getNodeIndex
in interface DeferredNode
synchronizeData
protected final void synchronizeData()
- Synchronizes the data (name and value) for fast nodes.
- Overrides:
synchronizeData
in class ElementImpl
synchronizeChildren
protected final void synchronizeChildren()
- Synchronizes the node's children with the internal structure.
Fluffing the children at once solves a lot of work to keep
the two structures in sync. The problem gets worse when
editing the tree -- this makes it a lot easier.
- Overrides:
synchronizeChildren
in class ParentNode
Copyright © 1999 The Apache Software Foundation. All Rights reserved.