Lines Matching refs:node
88 * One DTM may have several prefix numbers, if extended node indexing
95 * access needs to be blindingly fast since it's used in node addressing.
102 * a single Node Handle, this table is used to map the handle's node field
103 * into the actual node identifier.
108 * access needs to be blindingly fast since it's used in node addressing.
142 * obtained by adding this offset to the node-number field of the
486 * Given a W3C DOM node, try and return a DTM handle.
488 * the node will be found in any particular DTM.
490 * @param node Non-null reference to a DOM node.
494 synchronized public int getDTMHandleFromNode(org.w3c.dom.Node node)
496 if(null == node)
497 throw new IllegalArgumentException(XMLMessages.createXMLMessage(XMLErrorResources.ER_NODE_NON_NULL, null)); //"node must be non-null for getDTMHandleFromNode!");
499 if (node instanceof com.sun.org.apache.xml.internal.dtm.ref.DTMNodeProxy)
500 return ((com.sun.org.apache.xml.internal.dtm.ref.DTMNodeProxy) node).getDTMNodeNumber();
510 // one that contains ancestors or siblings of the node we're
514 // node at the deepest level, and thus covers the widest
524 // Have each DTM cache last DOM node search?
531 int handle=((DOM2DTM)thisDTM).getHandleOfNode(node);
546 // %BUG% If the source node was a DOM2DTM$defaultNamespaceDeclarationNode
548 // a new DTM and _still_ not be able to find the node (since it will
555 Node root = node;
567 if(node instanceof com.sun.org.apache.xml.internal.dtm.ref.dom2dtm.DOM2DTMdefaultNamespaceDeclarationNode)
569 // Can't return the same node since it's unique to a specific DTM,
570 // but can return the equivalent node -- find the corresponding
572 handle=dtm.getHandleOfNode(((org.w3c.dom.Attr)node).getOwnerElement());
573 handle=dtm.getAttributeNode(handle,node.getNamespaceURI(),node.getLocalName());
576 handle = ((DOM2DTM)dtm).getHandleOfNode(node);
579 throw new RuntimeException(XMLMessages.createXMLMessage(XMLErrorResources.ER_COULD_NOT_RESOLVE_NODE, null)); //"Could not resolve the node to a handle!");
640 * Return the DTM object containing a representation of this node.
642 * @param nodeHandle DTM Handle indicating which node to retrieve
644 * @return a reference to the DTM object containing this node.
667 * @param dtm The DTM which (hopefully) contains this node.
823 * NEEDSDOC @param node
827 synchronized public DTMIterator createDTMIterator(int node)