Class DeferredTextImpl

All Implemented Interfaces:
Serializable, Cloneable, DeferredNode, CharacterData, EventTarget, Node, NodeList, Text

public class DeferredTextImpl extends TextImpl implements DeferredNode
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 Node.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.

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.
Since:
PR-DOM-Level-1-19980818.
Version:
$Id: DeferredTextImpl.java 447266 2006-09-18 05:57:49Z mrglavas $
See Also:
  • Field Details

    • fNodeIndex

      protected transient int fNodeIndex
      Node index.
  • Method Details

    • getNodeIndex

      public int getNodeIndex()
      Returns the node index.
      Specified by:
      getNodeIndex in interface DeferredNode
    • synchronizeData

      protected void synchronizeData()
      Synchronizes the underlying data.
      Overrides:
      synchronizeData in class NodeImpl