@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XPathResult")
public class XPathResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_TYPE |
static int |
ANY_UNORDERED_NODE_TYPE |
static int |
BOOLEAN_TYPE |
static int |
FIRST_ORDERED_NODE_TYPE |
static int |
NUMBER_TYPE |
static int |
ORDERED_NODE_ITERATOR_TYPE |
static int |
ORDERED_NODE_SNAPSHOT_TYPE |
static int |
STRING_TYPE |
static int |
UNORDERED_NODE_ITERATOR_TYPE |
static int |
UNORDERED_NODE_SNAPSHOT_TYPE |
| Modifier | Constructor and Description |
|---|---|
protected |
XPathResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue()
The read-only booleanValue property of the XPathResult interface returns the boolean value of a result with XPathResult.resultType being BOOLEAN_TYPE.
|
boolean |
invalidIteratorState()
The read-only invalidIteratorState property of the XPathResult interface signifies that the iterator has become invalid.
|
Node |
iterateNext()
The iterateNext() method of the XPathResult interface iterates over a node set result and returns the next node from it or null if there are no more nodes.
|
double |
numberValue()
The read-only numberValue property of the XPathResult interface returns the numeric value of a result with XPathResult.resultType being NUMBER_TYPE.
|
int |
resultType()
The read-only resultType property of the XPathResult interface represents the type of the result, as defined by the type constants.
|
Node |
singleNodeValue()
The read-only singleNodeValue property of the XPathResult interface returns a Node value or null in case no node was matched of a result with XPathResult.resultType being ANY_UNORDERED_NODE_TYPE or FIRST_ORDERED_NODE_TYPE.
|
Node |
snapshotItem(int index)
The snapshotItem() method of the XPathResult interface returns an item of the snapshot collection or null in case the index is not within the range of nodes.
|
int |
snapshotLength()
The read-only snapshotLength property of the XPathResult interface represents the number of nodes in the result snapshot.
|
java.lang.String |
stringValue()
The read-only stringValue property of the XPathResult interface returns the string value of a result with XPathResult.resultType being STRING_TYPE.
|
@JsOverlay public static final int ANY_TYPE
@JsOverlay public static final int ANY_UNORDERED_NODE_TYPE
@JsOverlay public static final int BOOLEAN_TYPE
@JsOverlay public static final int FIRST_ORDERED_NODE_TYPE
@JsOverlay public static final int NUMBER_TYPE
@JsOverlay public static final int ORDERED_NODE_ITERATOR_TYPE
@JsOverlay public static final int ORDERED_NODE_SNAPSHOT_TYPE
@JsOverlay public static final int STRING_TYPE
@JsOverlay public static final int UNORDERED_NODE_ITERATOR_TYPE
@JsOverlay public static final int UNORDERED_NODE_SNAPSHOT_TYPE
@JsProperty(name="booleanValue") public boolean booleanValue()
@JsProperty(name="invalidIteratorState") public boolean invalidIteratorState()
@JsProperty(name="numberValue") public double numberValue()
@JsProperty(name="resultType") @XPathResultResultType public int resultType()
@JsProperty(name="singleNodeValue") @Nullable public Node singleNodeValue()
@JsProperty(name="snapshotLength") public int snapshotLength()
@JsProperty(name="stringValue") @Nonnull public java.lang.String stringValue()
@Nullable public Node iterateNext()
@Nullable public Node snapshotItem(int index)