public class AbstractDocument.XPathExpr.Result extends java.lang.Object implements org.w3c.dom.xpath.XPathResult
Modifier and Type | Field and Description |
---|---|
protected boolean |
booleanValue
The boolean value.
|
protected NodeList |
iterator
The NodeList for iterators.
|
protected int |
iteratorPosition
The position of the iterator.
|
protected double |
numberValue
The number value.
|
protected short |
resultType
The result type.
|
protected Node |
singleNodeValue
The single node value.
|
protected java.lang.String |
stringValue
The string value.
|
ANY_TYPE, ANY_UNORDERED_NODE_TYPE, BOOLEAN_TYPE, FIRST_ORDERED_NODE_TYPE, NUMBER_TYPE, ORDERED_NODE_ITERATOR_TYPE, ORDERED_NODE_SNAPSHOT_TYPE, STRING_TYPE, UNORDERED_NODE_ITERATOR_TYPE, UNORDERED_NODE_SNAPSHOT_TYPE
Constructor and Description |
---|
Result(boolean b)
Creates a new boolean Result object.
|
Result(double d)
Creates a new number Result object.
|
Result(NodeList nl,
short type)
Creates a new node iterator Result object.
|
Result(Node n,
short type)
Creates a new single node Result object.
|
Result(java.lang.String s)
Creates a new string Result object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue()
Gets the boolean value.
|
boolean |
getInvalidIteratorState()
Returns whether the iterator has been invalidated by
document modifications.
|
double |
getNumberValue()
Gets the number value.
|
short |
getResultType()
Gets the result type.
|
Node |
getSingleNodeValue()
Gets the single node value.
|
int |
getSnapshotLength()
Returns the length of the snapshot.
|
java.lang.String |
getStringValue()
Gets the string value.
|
Node |
iterateNext()
DOM: Implement
XPathResult.iterateNext() . |
Node |
snapshotItem(int i)
Returns the
i th item in the snapshot. |
protected short resultType
protected double numberValue
protected java.lang.String stringValue
protected boolean booleanValue
protected Node singleNodeValue
protected NodeList iterator
protected int iteratorPosition
public Result(Node n, short type)
public Result(boolean b) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Result(double d) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Result(java.lang.String s)
public Result(NodeList nl, short type)
public short getResultType()
getResultType
in interface org.w3c.dom.xpath.XPathResult
public boolean getBooleanValue()
getBooleanValue
in interface org.w3c.dom.xpath.XPathResult
public double getNumberValue()
getNumberValue
in interface org.w3c.dom.xpath.XPathResult
public java.lang.String getStringValue()
getStringValue
in interface org.w3c.dom.xpath.XPathResult
public Node getSingleNodeValue()
getSingleNodeValue
in interface org.w3c.dom.xpath.XPathResult
public boolean getInvalidIteratorState()
getInvalidIteratorState
in interface org.w3c.dom.xpath.XPathResult
public int getSnapshotLength()
getSnapshotLength
in interface org.w3c.dom.xpath.XPathResult
public Node iterateNext()
XPathResult.iterateNext()
.iterateNext
in interface org.w3c.dom.xpath.XPathResult
public Node snapshotItem(int i)
i
th item in the snapshot.snapshotItem
in interface org.w3c.dom.xpath.XPathResult
Copyright © 2022 Apache Software Foundation. All Rights Reserved.