1 16 17 package org.apache.xerces.dom; 18 19 72 public class DeferredEntityReferenceImpl 73 extends EntityReferenceImpl 74 implements DeferredNode { 75 76 80 81 static final long serialVersionUID = 390319091370032223L; 82 83 87 88 protected transient int fNodeIndex; 89 90 94 98 DeferredEntityReferenceImpl(DeferredDocumentImpl ownerDocument, 99 int nodeIndex) { 100 super(ownerDocument, null); 101 102 fNodeIndex = nodeIndex; 103 needsSyncData(true); 104 105 } 107 111 112 public int getNodeIndex() { 113 return fNodeIndex; 114 } 115 116 120 124 protected void synchronizeData() { 125 126 needsSyncData(false); 128 129 DeferredDocumentImpl ownerDocument = 131 (DeferredDocumentImpl)this.ownerDocument; 132 name = ownerDocument.getNodeName(fNodeIndex); 133 baseURI = ownerDocument.getNodeValue(fNodeIndex); 134 135 } 137 138 protected void synchronizeChildren() { 139 140 needsSyncChildren(false); 142 143 isReadOnly(false); 145 DeferredDocumentImpl ownerDocument = 146 (DeferredDocumentImpl) ownerDocument(); 147 ownerDocument.synchronizeChildren(this, fNodeIndex); 148 setReadOnly(true, true); 149 150 } 152 } | Popular Tags |