FileDocCategorySizeDatePackage
DeferredCommentImpl.javaAPI DocJava SE 5 API4265Fri Aug 26 14:55:42 BST 2005com.sun.org.apache.xerces.internal.dom

DeferredCommentImpl

public class DeferredCommentImpl extends CommentImpl implements DeferredNode
Represents an XML (or HTML) comment.
version
$Id: DeferredCommentImpl.java,v 1.9 2002/01/29 01:15:07 lehors Exp $
since
PR-DOM-Level-1-19980818.

Fields Summary
static final long
serialVersionUID
Serialization version.
protected transient int
fNodeIndex
Node index.
Constructors Summary
DeferredCommentImpl(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.


    //
    // Constructors
    //

                                
        
        super(ownerDocument, null);

        fNodeIndex = nodeIndex;
        needsSyncData(true);

    
Methods Summary
public intgetNodeIndex()
Returns the node index.

        return fNodeIndex;
    
protected voidsynchronizeData()
Synchronizes the data (name and value) for fast nodes.


        // no need to sync in the future
        needsSyncData(false);

        // fluff data
        DeferredDocumentImpl ownerDocument =
            (DeferredDocumentImpl) this.ownerDocument();
        data = ownerDocument.getNodeValueString(fNodeIndex);