1 57 58 package org.enhydra.apache.xerces.dom; 59 60 import org.enhydra.apache.xerces.utils.StringPool; 61 62 83 public class DeferredNotationImpl 84 extends NotationImpl 85 implements DeferredNode { 86 87 91 92 static final long serialVersionUID = 5705337172887990848L; 93 94 98 99 protected transient int fNodeIndex; 100 101 105 109 DeferredNotationImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 110 super(ownerDocument, null); 111 112 fNodeIndex = nodeIndex; 113 needsSyncData(true); 114 115 } 117 121 122 public int getNodeIndex() { 123 return fNodeIndex; 124 } 125 126 130 134 protected void synchronizeData() { 135 136 needsSyncData(false); 138 139 DeferredDocumentImpl ownerDocument = 141 (DeferredDocumentImpl)this.ownerDocument(); 142 name = ownerDocument.getNodeNameString(fNodeIndex); 143 144 StringPool pool = ownerDocument.getStringPool(); 146 int extraDataIndex = ownerDocument.getNodeValue(fNodeIndex); 147 ownerDocument.getNodeType(extraDataIndex); 148 publicId = pool.toString(ownerDocument.getNodeName(extraDataIndex)); 149 systemId = pool.toString(ownerDocument.getNodeValue(extraDataIndex)); 150 151 } 153 } | Popular Tags |