Top Description Fields Constructors Methods
org.apache.xerces.dom

public Class DeferredTextImpl

extends TextImpl
implements DeferredNode
Class Inheritance
All Implemented Interfaces
org.apache.xerces.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.
Version
$Id: DeferredTextImpl.java 447266 2006-09-18 05:57:49Z mrglavas $

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
synchronizeData()

Overrides org.apache.xerces.dom.NodeImpl.synchronizeData.

Synchronizes the underlying data.
Inherited from org.apache.xerces.dom.TextImpl:
getNodeNamegetNodeTypegetWholeTextinsertTextContentisElementContentWhitespaceisIgnorableWhitespaceremoveDatareplaceDatareplaceWholeTextsetIgnorableWhitespacesetValuessplitText

Field Detail

fNodeIndexback to summary
protected transient int fNodeIndex

Node index.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.apache.xerces.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 org.apache.xerces.dom.DeferredNode.getNodeIndex.

Returns the node index.

synchronizeDataback to summary
protected void synchronizeData()

Overrides org.apache.xerces.dom.NodeImpl.synchronizeData.

Synchronizes the underlying data.