/** * This is the deferred constructor. Only the fNodeIndex is given here. All * other data, can be requested from the ownerDocument via the index. */ DeferredElementImpl(DeferredDocumentImpl ownerDoc, int nodeIndex) { super(ownerDoc, null); fNodeIndex = nodeIndex; needsSyncChildren(true); } // <init>(DocumentImpl,int)
protected final void synchronizeChildren() { DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); ownerDocument.synchronizeChildren(this, fNodeIndex); } // synchronizeChildren()
/** 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()
node = new DeferredElementNSImpl(this, nodeIndex); } else { node = new DeferredElementImpl(this, nodeIndex);
for (int i = 0; i < j.getChildNodes().getLength(); i++) { if (!j.getChildNodes().item(i).getNodeName().equalsIgnoreCase("#text")) { Node n = j.getChildNodes().item(i); String s = n.getNodeName(); s = n.getNodeValue(); s = n.getBaseURI(); log.log(Level.DEBUG, "Found action via org.apache.xerces.dom.DeferredElementImpl"); return j.getChildNodes().item(i).getNodeName();