1 57 58 63 64 package com.sun.org.apache.xerces.internal.dom; 65 66 104 public final class DeferredAttrImpl 105 extends AttrImpl 106 implements DeferredNode { 107 108 112 113 static final long serialVersionUID = 6903232312469148636L; 114 115 119 120 protected transient int fNodeIndex; 121 122 126 130 DeferredAttrImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 131 super(ownerDocument, null); 132 133 fNodeIndex = nodeIndex; 134 needsSyncData(true); 135 needsSyncChildren(true); 136 137 } 139 143 144 public int getNodeIndex() { 145 return fNodeIndex; 146 } 147 148 152 153 protected void synchronizeData() { 154 155 needsSyncData(false); 157 158 DeferredDocumentImpl ownerDocument = 160 (DeferredDocumentImpl) ownerDocument(); 161 name = ownerDocument.getNodeName(fNodeIndex); 162 int extra = ownerDocument.getNodeExtra(fNodeIndex); 163 isSpecified((extra & SPECIFIED) != 0); 164 isIdAttribute((extra & ID) != 0); 165 166 int extraNode = ownerDocument.getLastChild(fNodeIndex); 167 type = ownerDocument.getTypeInfo(extraNode); 168 } 170 176 protected void synchronizeChildren() { 177 DeferredDocumentImpl ownerDocument = 178 (DeferredDocumentImpl) ownerDocument(); 179 ownerDocument.synchronizeChildren(this, fNodeIndex); 180 } 182 } | Popular Tags |