1 16 17 package org.apache.xerces.dom; 18 19 27 public class DeferredCommentImpl 28 extends CommentImpl 29 implements DeferredNode { 30 31 35 36 static final long serialVersionUID = 6498796371083589338L; 37 38 42 43 protected transient int fNodeIndex; 44 45 49 53 DeferredCommentImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 54 super(ownerDocument, null); 55 56 fNodeIndex = nodeIndex; 57 needsSyncData(true); 58 59 } 61 65 66 public int getNodeIndex() { 67 return fNodeIndex; 68 } 69 70 74 75 protected void synchronizeData() { 76 77 needsSyncData(false); 79 80 DeferredDocumentImpl ownerDocument = 82 (DeferredDocumentImpl) this.ownerDocument(); 83 data = ownerDocument.getNodeValueString(fNodeIndex); 84 85 } 87 } | Popular Tags |