| java.lang.Object org.apache.xpath.domapi.XPathResultImpl
XPathResultImpl | XPathResultImpl(short type, XObject result, Node contextNode, XPath xpath)(Code) | | Constructor for XPathResultImpl.
For internal use only.
|
isValidType | static boolean isValidType(short type)(Code) | | Check if the specified type is one of the supported types.
Parameters: type - The specified type true If the specified type is supported; otherwise, returns false. |
snapshotItem | public Node snapshotItem(int index) throws XPathException(Code) | | Returns the index th item in the snapshot collection. If
index is greater than or equal to the number of nodes in
the list, this method returns null . Unlike the iterator
result, the snapshot does not become invalid, but may not correspond
to the current document if it is mutated.
Parameters: index - Index into the snapshot collection. The node at the index th position in the NodeList , or null if that is not a valid index. exception: XPathException - TYPE_ERR: raised if resultType is not UNORDERED_NODE_SNAPSHOT_TYPE or ORDERED_NODE_SNAPSHOT_TYPE . See Also: org.w3c.dom.xpath.XPathResult.snapshotItem(int) |
|
|