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

public Class DeferredTextImpl

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

Text nodes hold the non-markup, non-Entity content of an Element or Attribute.

When a document is first made available to the DOM, there is only one Text object for each block of adjacent plain-text. Users (ie, applications) may create multiple adjacent Texts during editing -- see org.w3c.dom.Element#normalize for discussion.

Note that CDATASection is a subclass of Text. This is conceptually valid, since they're really just two different ways of quoting characters when they're written out as part of an XML stream.

Since
PR-DOM-Level-1-19980818.

Field Summary

Modifier and TypeField and Description
protected transient int
fNodeIndex

Node index.

pack-priv static final long

Constructor Summary

AccessConstructor and Description
pack-priv
DeferredTextImpl(DeferredDocumentImpl ownerDocument, int nodeIndex)

This is the deferred constructor.

Method Summary

Modifier and TypeMethod and Description
public int
protected void
Inherited from com.sun.org.apache.xerces.internal.dom.TextImpl:
getNodeNamegetNodeTypegetWholeTextinsertTextContentisElementContentWhitespaceisIgnorableWhitespaceremoveDatareplaceDatareplaceWholeTextsetIgnorableWhitespacesetValuessplitText

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.TextImpl.serialVersionUID.

Serialization version.

Constructor Detail

DeferredTextImplback to summary
pack-priv DeferredTextImpl(DeferredDocumentImpl ownerDocument, 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 int getNodeIndex()

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

Returns the node index.

synchronizeDataback to summary
protected void synchronizeData()

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

Synchronizes the underlying data.