1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 61 95 public class DeferredEntityImpl 96 extends EntityImpl 97 implements DeferredNode { 98 99 103 104 static final long serialVersionUID = 4760180431078941638L; 105 106 110 111 protected transient int fNodeIndex; 112 113 117 121 DeferredEntityImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 122 super(ownerDocument, null); 123 124 fNodeIndex = nodeIndex; 125 needsSyncData(true); 126 needsSyncChildren(true); 127 128 } 130 134 135 public int getNodeIndex() { 136 return fNodeIndex; 137 } 138 139 143 147 protected void synchronizeData() { 148 149 needsSyncData(false); 151 152 DeferredDocumentImpl ownerDocument = 154 (DeferredDocumentImpl)this.ownerDocument; 155 name = ownerDocument.getNodeName(fNodeIndex); 156 157 publicId = ownerDocument.getNodeValue(fNodeIndex); 159 systemId = ownerDocument.getNodeURI(fNodeIndex); 160 int extraDataIndex = ownerDocument.getNodeExtra(fNodeIndex); 161 ownerDocument.getNodeType(extraDataIndex); 162 163 notationName = ownerDocument.getNodeName(extraDataIndex); 164 165 version = ownerDocument.getNodeValue(extraDataIndex); 167 encoding = ownerDocument.getNodeURI(extraDataIndex); 168 169 int extraIndex2 = ownerDocument.getNodeExtra(extraDataIndex); 171 baseURI = ownerDocument.getNodeName(extraIndex2); 172 inputEncoding = ownerDocument.getNodeValue(extraIndex2); 173 174 } 176 177 protected void synchronizeChildren() { 178 179 needsSyncChildren(false); 181 182 isReadOnly(false); 183 DeferredDocumentImpl ownerDocument = 184 (DeferredDocumentImpl) ownerDocument(); 185 ownerDocument.synchronizeChildren(this, fNodeIndex); 186 setReadOnly(true, true); 187 188 } 190 } | Popular Tags |