1 16 17 package org.apache.xerces.dom; 18 19 37 public class DeferredTextImpl 38 extends TextImpl 39 implements DeferredNode { 40 41 45 46 static final long serialVersionUID = 2310613872100393425L; 47 48 52 53 protected transient int fNodeIndex; 54 55 59 63 DeferredTextImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 64 super(ownerDocument, null); 65 66 fNodeIndex = nodeIndex; 67 needsSyncData(true); 68 69 } 71 75 76 public int getNodeIndex() { 77 return fNodeIndex; 78 } 79 80 84 85 protected void synchronizeData() { 86 87 needsSyncData(false); 89 90 DeferredDocumentImpl ownerDocument = 92 (DeferredDocumentImpl) this.ownerDocument(); 93 data = ownerDocument.getNodeValueString(fNodeIndex); 94 95 99 isIgnorableWhitespace(ownerDocument.getNodeExtra(fNodeIndex) == 1); 101 102 } 104 } | Popular Tags |