org.w3c.dom.xpath.XPathResultpublic class AbstractDocument.XPathExpr.Result
extends java.lang.Object
implements org.w3c.dom.xpath.XPathResult
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
booleanValue |
The boolean value.
|
protected org.w3c.dom.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 org.w3c.dom.Node |
singleNodeValue |
The single node value.
|
protected java.lang.String |
stringValue |
The string value.
|
| Constructor | Description |
|---|---|
Result(boolean b) |
Creates a new boolean Result object.
|
Result(double d) |
Creates a new number Result object.
|
Result(java.lang.String s) |
Creates a new string Result object.
|
Result(org.w3c.dom.NodeList nl,
short type) |
Creates a new node iterator Result object.
|
Result(org.w3c.dom.Node n,
short type) |
Creates a new single node Result object.
|
| Modifier and Type | Method | 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.
|
org.w3c.dom.Node |
getSingleNodeValue() |
Gets the single node value.
|
int |
getSnapshotLength() |
Returns the length of the snapshot.
|
java.lang.String |
getStringValue() |
Gets the string value.
|
org.w3c.dom.Node |
iterateNext() |
DOM: Implement
XPathResult.iterateNext(). |
org.w3c.dom.Node |
snapshotItem(int i) |
Returns the
ith item in the snapshot. |
protected short resultType
protected double numberValue
protected java.lang.String stringValue
protected boolean booleanValue
protected org.w3c.dom.Node singleNodeValue
protected org.w3c.dom.NodeList iterator
protected int iteratorPosition
public Result(org.w3c.dom.Node n,
short type)
public Result(boolean b)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionpublic Result(double d)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionpublic Result(java.lang.String s)
public Result(org.w3c.dom.NodeList nl,
short type)
public short getResultType()
getResultType in interface org.w3c.dom.xpath.XPathResultpublic boolean getBooleanValue()
getBooleanValue in interface org.w3c.dom.xpath.XPathResultpublic double getNumberValue()
getNumberValue in interface org.w3c.dom.xpath.XPathResultpublic java.lang.String getStringValue()
getStringValue in interface org.w3c.dom.xpath.XPathResultpublic org.w3c.dom.Node getSingleNodeValue()
getSingleNodeValue in interface org.w3c.dom.xpath.XPathResultpublic boolean getInvalidIteratorState()
getInvalidIteratorState in interface org.w3c.dom.xpath.XPathResultpublic int getSnapshotLength()
getSnapshotLength in interface org.w3c.dom.xpath.XPathResultpublic org.w3c.dom.Node iterateNext()
XPathResult.iterateNext().iterateNext in interface org.w3c.dom.xpath.XPathResultpublic org.w3c.dom.Node snapshotItem(int i)
ith item in the snapshot.snapshotItem in interface org.w3c.dom.xpath.XPathResultCopyright ? 2018 Apache Software Foundation. All Rights Reserved.