1 16 17 22 23 package org.apache.xerces.dom; 24 25 64 public final class DeferredAttrImpl 65 extends AttrImpl 66 implements DeferredNode { 67 68 72 73 static final long serialVersionUID = 6903232312469148636L; 74 75 79 80 protected transient int fNodeIndex; 81 82 86 90 DeferredAttrImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 91 super(ownerDocument, null); 92 93 fNodeIndex = nodeIndex; 94 needsSyncData(true); 95 needsSyncChildren(true); 96 97 } 99 103 104 public int getNodeIndex() { 105 return fNodeIndex; 106 } 107 108 112 113 protected void synchronizeData() { 114 115 needsSyncData(false); 117 118 DeferredDocumentImpl ownerDocument = 120 (DeferredDocumentImpl) ownerDocument(); 121 name = ownerDocument.getNodeName(fNodeIndex); 122 int extra = ownerDocument.getNodeExtra(fNodeIndex); 123 isSpecified((extra & SPECIFIED) != 0); 124 isIdAttribute((extra & ID) != 0); 125 126 int extraNode = ownerDocument.getLastChild(fNodeIndex); 127 type = ownerDocument.getTypeInfo(extraNode); 128 } 130 136 protected void synchronizeChildren() { 137 DeferredDocumentImpl ownerDocument = 138 (DeferredDocumentImpl) ownerDocument(); 139 ownerDocument.synchronizeChildren(this, fNodeIndex); 140 } 142 } | Popular Tags |