1 57 58 package org.enhydra.apache.xerces.dom; 59 60 66 public class DeferredCommentImpl 67 extends CommentImpl 68 implements DeferredNode { 69 70 74 75 static final long serialVersionUID = 6498796371083589338L; 76 77 81 82 protected transient int fNodeIndex; 83 84 88 92 DeferredCommentImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 93 super(ownerDocument, null); 94 95 fNodeIndex = nodeIndex; 96 needsSyncData(true); 97 98 } 100 104 105 public int getNodeIndex() { 106 return fNodeIndex; 107 } 108 109 113 114 protected void synchronizeData() { 115 116 needsSyncData(false); 118 119 DeferredDocumentImpl ownerDocument = 121 (DeferredDocumentImpl) this.ownerDocument(); 122 data = ownerDocument.getNodeValueString(fNodeIndex); 123 124 } 126 } | Popular Tags |