/** Synchronizes the data (name and value) for fast nodes. */ protected final void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument; // we don't want to generate any event for this so turn them off boolean orig = ownerDocument.mutationEvents; ownerDocument.mutationEvents = false; name = ownerDocument.getNodeName(fNodeIndex); // attributes setupDefaultAttributes(); int index = ownerDocument.getNodeExtra(fNodeIndex); if (index != -1) { NamedNodeMap attrs = getAttributes(); do { NodeImpl attr = (NodeImpl)ownerDocument.getNodeObject(index); attrs.setNamedItem(attr); index = ownerDocument.getPrevSibling(index); } while (index != -1); } // set mutation events flag back to its original value ownerDocument.mutationEvents = orig; } // synchronizeData()
boolean seenSchemaDefault = false; do { AttrImpl attr = (AttrImpl) ownerDocument.getNodeObject(attrIndex);
/** Synchronizes the default attribute values. */ protected void synchronizeChildren() { // we don't want to generate any event for this so turn them off boolean orig = ownerDocument.getMutationEvents(); ownerDocument.setMutationEvents(false); // attributes are now synced needsSyncChildren(false); // create attributes node map DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument; attributes = new NamedNodeMapImpl(ownerDocument); // Default attributes dangle as children of the element // definition "node" in the internal fast table. for (int nodeIndex = ownerDocument.getLastChild(fNodeIndex); nodeIndex != -1; nodeIndex = ownerDocument.getPrevSibling(nodeIndex)) { Node attr = ownerDocument.getNodeObject(nodeIndex); attributes.setNamedItem(attr); } // set mutation events flag back to its original value ownerDocument.setMutationEvents(orig); } // synchronizeChildren()
index = getPrevSibling(index)) { ChildNode node = (ChildNode) getNodeObject(index); if (lastNode == null) { lastNode = node;
index = ownerDocument.getPrevSibling(index)) { DeferredNode node = ownerDocument.getNodeObject(index); int type = node.getNodeType(); switch (type) {
index = getPrevSibling(index)) { ChildNode node = (ChildNode)getNodeObject(index); if (last == null) { last = node;
index = getPrevSibling(index)) { ChildNode node = (ChildNode) getNodeObject(index); if (lastNode == null) { lastNode = node;