1 57 58 package org.enhydra.apache.xerces.dom; 59 60 import org.w3c.dom.Element ; 61 62 78 public class DeferredTextImpl 79 extends TextImpl 80 implements DeferredNode { 81 82 86 87 static final long serialVersionUID = 2310613872100393425L; 88 89 93 94 protected transient int fNodeIndex; 95 96 100 104 DeferredTextImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 105 super(ownerDocument, null); 106 107 fNodeIndex = nodeIndex; 108 needsSyncData(true); 109 110 } 112 116 117 public int getNodeIndex() { 118 return fNodeIndex; 119 } 120 121 125 126 protected void synchronizeData() { 127 128 needsSyncData(false); 130 131 DeferredDocumentImpl ownerDocument = 133 (DeferredDocumentImpl) this.ownerDocument(); 134 data = ownerDocument.getNodeValueString(fNodeIndex); 135 136 140 isIgnorableWhitespace(ownerDocument.getLastChild(fNodeIndex) == 1); 142 143 } 145 } | Popular Tags |