Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class DeferredElementImpl

extends ElementImpl
implements DeferredNode
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.dom.DeferredNode, org.w3c.dom.Node
Imports
org.w3c.dom.NamedNodeMap

Elements represent most of the "markup" and structure of the document. They contain both the data for the element itself (element name and attributes), and any contained nodes, including document text (as children).

Elements may have Attributes associated with them; the API for this is defined in Node, but the function is implemented here. In general, XML applications should retrive Attributes as Nodes, since they may contain entity references and hence be a fairly complex sub-tree. HTML users will be dealing with simple string values, and convenience methods are provided to work in terms of Strings.

DeferredElementImpl inherits from ElementImpl which does not support Namespaces. DeferredElementNSImpl, which inherits from ElementNSImpl, does.

Since
PR-DOM-Level-1-19980818.
See Also
DeferredElementNSImpl

Field Summary

Modifier and TypeField and Description
protected transient int
fNodeIndex

Node index.

pack-priv static final long
Inherited from com.sun.org.apache.xerces.internal.dom.ElementImpl:
attributesname

Constructor Summary

AccessConstructor and Description
pack-priv
DeferredElementImpl(DeferredDocumentImpl ownerDoc, int nodeIndex)

This is the deferred constructor.

Method Summary

Modifier and TypeMethod and Description
public final int
protected final void
synchronizeChildren()

Overrides com.sun.org.apache.xerces.internal.dom.ParentNode.synchronizeChildren.

Override this method in subclass to hook in efficient internal data structure.

protected final void
synchronizeData()

Overrides com.sun.org.apache.xerces.internal.dom.ElementImpl.synchronizeData.

Synchronizes the data (name and value) for fast nodes.

Inherited from com.sun.org.apache.xerces.internal.dom.ElementImpl:
cloneNodegetAttributegetAttributeNodegetAttributeNodeNSgetAttributeNSgetAttributesgetBaseURIgetChildElementCountgetDefaultAttributesgetElementsByTagNamegetElementsByTagNameNSgetFirstElementChildgetLastElementChildgetNextElementSiblinggetNodeNamegetNodeTypegetPreviousElementSiblinggetSchemaTypeInfogetTagNamegetTypeNamegetTypeNamespacegetXercesAttributegetXMLBaseAttributehasAttributehasAttributeNShasAttributesisDerivedFromisEqualNodemoveSpecifiedAttributesnormalizereconcileDefaultAttributesremoveAttributeremoveAttributeNoderemoveAttributeNSrenamesetAttributesetAttributeNodesetAttributeNodeNSsetAttributeNSsetIdAttributesetIdAttributeNodesetIdAttributeNSsetOwnerDocumentsetReadOnlysetupDefaultAttributessetXercesAttributeNode

Field Detail

fNodeIndexback to summary
protected transient int fNodeIndex

Node index.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xerces.internal.dom.ElementImpl.serialVersionUID.

Serialization version.

Constructor Detail

DeferredElementImplback to summary
pack-priv DeferredElementImpl(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.

Method Detail

getNodeIndexback to summary
public final int getNodeIndex()

Implements com.sun.org.apache.xerces.internal.dom.DeferredNode.getNodeIndex.

Returns the node index.

synchronizeChildrenback to summary
protected final void synchronizeChildren()

Overrides com.sun.org.apache.xerces.internal.dom.ParentNode.synchronizeChildren.

Doc from com.sun.org.apache.xerces.internal.dom.ParentNode.synchronizeChildren.

Override this method in subclass to hook in efficient internal data structure.

synchronizeDataback to summary
protected final void synchronizeData()

Overrides com.sun.org.apache.xerces.internal.dom.ElementImpl.synchronizeData.

Synchronizes the data (name and value) for fast nodes.