1 16 17 package org.apache.xerces.dom; 18 19 20 55 public class DeferredEntityImpl 56 extends EntityImpl 57 implements DeferredNode { 58 59 63 64 static final long serialVersionUID = 4760180431078941638L; 65 66 70 71 protected transient int fNodeIndex; 72 73 77 81 DeferredEntityImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 82 super(ownerDocument, null); 83 84 fNodeIndex = nodeIndex; 85 needsSyncData(true); 86 needsSyncChildren(true); 87 88 } 90 94 95 public int getNodeIndex() { 96 return fNodeIndex; 97 } 98 99 103 107 protected void synchronizeData() { 108 109 needsSyncData(false); 111 112 DeferredDocumentImpl ownerDocument = 114 (DeferredDocumentImpl)this.ownerDocument; 115 name = ownerDocument.getNodeName(fNodeIndex); 116 117 publicId = ownerDocument.getNodeValue(fNodeIndex); 119 systemId = ownerDocument.getNodeURI(fNodeIndex); 120 int extraDataIndex = ownerDocument.getNodeExtra(fNodeIndex); 121 ownerDocument.getNodeType(extraDataIndex); 122 123 notationName = ownerDocument.getNodeName(extraDataIndex); 124 125 version = ownerDocument.getNodeValue(extraDataIndex); 127 encoding = ownerDocument.getNodeURI(extraDataIndex); 128 129 int extraIndex2 = ownerDocument.getNodeExtra(extraDataIndex); 131 baseURI = ownerDocument.getNodeName(extraIndex2); 132 inputEncoding = ownerDocument.getNodeValue(extraIndex2); 133 134 } 136 137 protected void synchronizeChildren() { 138 139 needsSyncChildren(false); 141 142 isReadOnly(false); 143 DeferredDocumentImpl ownerDocument = 144 (DeferredDocumentImpl) ownerDocument(); 145 ownerDocument.synchronizeChildren(this, fNodeIndex); 146 setReadOnly(true, true); 147 148 } 150 } | Popular Tags |