1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 111 public class DeferredEntityReferenceImpl 112 extends EntityReferenceImpl 113 implements DeferredNode { 114 115 119 120 static final long serialVersionUID = 390319091370032223L; 121 122 126 127 protected transient int fNodeIndex; 128 129 133 137 DeferredEntityReferenceImpl(DeferredDocumentImpl ownerDocument, 138 int nodeIndex) { 139 super(ownerDocument, null); 140 141 fNodeIndex = nodeIndex; 142 needsSyncData(true); 143 144 } 146 150 151 public int getNodeIndex() { 152 return fNodeIndex; 153 } 154 155 159 163 protected void synchronizeData() { 164 165 needsSyncData(false); 167 168 DeferredDocumentImpl ownerDocument = 170 (DeferredDocumentImpl)this.ownerDocument; 171 name = ownerDocument.getNodeName(fNodeIndex); 172 baseURI = ownerDocument.getNodeValue(fNodeIndex); 173 174 } 176 177 protected void synchronizeChildren() { 178 179 needsSyncChildren(false); 181 182 isReadOnly(false); 184 DeferredDocumentImpl ownerDocument = 185 (DeferredDocumentImpl) ownerDocument(); 186 ownerDocument.synchronizeChildren(this, fNodeIndex); 187 setReadOnly(true, true); 188 189 } 191 } | Popular Tags |