API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.xpath. XPathResult View Source
Author(s)
Since
Version
Serial
Hierarchy
 XPathResult
Subinterfaces
Description
public interface XPathResult
  The XPathResult interface represents the result of the evaluation of an XPath 1.0 expression within the context of a particular node.
See also:   
Methods
Hide/Show inherited methods
public boolean getBooleanValue () throws XPathException
  The value of this boolean result.
public boolean getInvalidIteratorState ()
  Signifies that the iterator has become invalid.
public double getNumberValue () throws XPathException
  The value of this number result.
public short getResultType ()
A code representing the type of this result, as defined by the type constants.
public Node getSingleNodeValue () throws XPathException
  The value of this single node result, which may be null.
public int getSnapshotLength () throws XPathException
  The number of nodes in the result snapshot.
public String getStringValue () throws XPathException
  The value of this string result.
public Node iterateNext () throws XPathException DOMException
  Iterates and returns the next node from the node set or nullif there are no more nodes.
public Node snapshotItem (int index) throws XPathException
  Returns the indexth item in the snapshot collection.
Fields
Hide/Show inherited fields
publicfinalstatic short ANY_TYPE = "0"
  This code does not represent a specific type.
publicfinalstatic short ANY_UNORDERED_NODE_TYPE = "8"
  The result is a node set as defined by and will be accessed as a single node, which may be nullif the node set is empty.
publicfinalstatic short BOOLEAN_TYPE = "3"
  The result is a boolean as defined by .
publicfinalstatic short FIRST_ORDERED_NODE_TYPE = "9"
  The result is a node set as defined by and will be accessed as a single node, which may be null if the node set is empty.
publicfinalstatic short NUMBER_TYPE = "1"
  The result is a number as defined by .
publicfinalstatic short ORDERED_NODE_ITERATOR_TYPE = "5"
  The result is a node set as defined by that will be accessed iteratively, which will produce document-ordered nodes.
publicfinalstatic short ORDERED_NODE_SNAPSHOT_TYPE = "7"
  The result is a node set as defined by that will be accessed as a snapshot list of nodes that will be in original document order.
publicfinalstatic short STRING_TYPE = "2"
  The result is a string as defined by .
publicfinalstatic short UNORDERED_NODE_ITERATOR_TYPE = "4"
  The result is a node set as defined by that will be accessed iteratively, which may not produce nodes in a particular order.
publicfinalstatic short UNORDERED_NODE_SNAPSHOT_TYPE = "6"
  The result is a node set as defined by that will be accessed as a snapshot list of nodes that may not be in a particular order.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar