1 57 58 63 64 package org.enhydra.apache.xerces.dom; 65 66 import org.enhydra.apache.xerces.utils.StringPool; 67 68 106 public final class DeferredAttrImpl 107 extends AttrImpl 108 implements DeferredNode { 109 110 114 115 static final long serialVersionUID = 6903232312469148636L; 116 117 121 122 protected transient int fNodeIndex; 123 124 128 132 DeferredAttrImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 133 super(ownerDocument, null); 134 135 fNodeIndex = nodeIndex; 136 needsSyncData(true); 137 needsSyncChildren(true); 138 139 } 141 145 146 public int getNodeIndex() { 147 return fNodeIndex; 148 } 149 150 154 155 protected void synchronizeData() { 156 157 needsSyncData(false); 159 160 DeferredDocumentImpl ownerDocument = 162 (DeferredDocumentImpl) ownerDocument(); 163 int elementTypeName = ownerDocument.getNodeName(fNodeIndex); 164 StringPool pool = ownerDocument.getStringPool(); 165 name = pool.toString(elementTypeName); 166 isSpecified(ownerDocument.getNodeValue(fNodeIndex) == 1); 167 168 } 170 176 protected void synchronizeChildren() { 177 DeferredDocumentImpl ownerDocument = 178 (DeferredDocumentImpl) ownerDocument(); 179 ownerDocument.synchronizeChildren(this, fNodeIndex); 180 } 182 } | Popular Tags |