1 57 58 63 64 65 package com.sun.org.apache.xerces.internal.dom; 66 67 75 public final class DeferredAttrNSImpl 76 extends AttrNSImpl 77 implements DeferredNode { 78 79 83 84 static final long serialVersionUID = 6074924934945957154L; 85 86 90 91 protected transient int fNodeIndex; 92 93 97 101 DeferredAttrNSImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { 102 super(ownerDocument, null); 103 104 fNodeIndex = nodeIndex; 105 needsSyncData(true); 106 needsSyncChildren(true); 107 108 } 110 114 115 public int getNodeIndex() { 116 return fNodeIndex; 117 } 118 119 123 124 protected void synchronizeData() { 125 126 needsSyncData(false); 128 129 DeferredDocumentImpl ownerDocument = 131 (DeferredDocumentImpl) ownerDocument(); 132 name = ownerDocument.getNodeName(fNodeIndex); 133 134 int index = name.indexOf(':'); 136 if (index < 0) { 137 localName = name; 138 } 139 else { 140 localName = name.substring(index + 1); 141 } 142 143 int extra = ownerDocument.getNodeExtra(fNodeIndex); 144 isSpecified((extra & SPECIFIED) != 0); 145 isIdAttribute((extra & ID) != 0); 146 147 namespaceURI = ownerDocument.getNodeURI(fNodeIndex); 148 149 int extraNode = ownerDocument.getLastChild(fNodeIndex); 150 type = ownerDocument.getTypeInfo(extraNode); 151 } 153 159 protected void synchronizeChildren() { 160 DeferredDocumentImpl ownerDocument = 161 (DeferredDocumentImpl) ownerDocument(); 162 ownerDocument.synchronizeChildren(this, fNodeIndex); 163 } 165 } | Popular Tags |