Class DeferredElementImpl

  • All Implemented Interfaces:
    Serializable, Cloneable, DeferredNode, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

    public class DeferredElementImpl
    extends ElementImpl
    implements DeferredNode
    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.
    Version:
    $Id$
    See Also:
    DeferredElementNSImpl, Serialized Form
    • Field Detail

      • fNodeIndex

        protected transient int fNodeIndex
        Node index.
    • Method Detail

      • 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()
        Description copied from class: ParentNode
        Override this method in subclass to hook in efficient internal data structure.
        Overrides:
        synchronizeChildren in class ParentNode