public class AbstractDocument.XPathExpr.Result extends Object
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 String |
stringValue
The string value.
|
Constructor and Description |
---|
AbstractDocument.XPathExpr.Result(boolean b)
Creates a new boolean Result object.
|
AbstractDocument.XPathExpr.Result(double d)
Creates a new number Result object.
|
AbstractDocument.XPathExpr.Result(NodeList nl,
short type)
Creates a new node iterator Result object.
|
AbstractDocument.XPathExpr.Result(Node n,
short type)
Creates a new single node Result object.
|
AbstractDocument.XPathExpr.Result(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.
|
String |
getStringValue()
Gets the string value.
|
Node |
iterateNext()
DOM: Implement
xpath.XPathResult . |
Node |
snapshotItem(int i)
Returns the
i th item in the snapshot. |
protected short resultType
protected double numberValue
protected String stringValue
protected boolean booleanValue
protected Node singleNodeValue
protected NodeList iterator
protected int iteratorPosition
public AbstractDocument.XPathExpr.Result(Node n, short type)
public AbstractDocument.XPathExpr.Result(boolean b) throws TransformerException
TransformerException
public AbstractDocument.XPathExpr.Result(double d) throws TransformerException
TransformerException
public AbstractDocument.XPathExpr.Result(String s)
public AbstractDocument.XPathExpr.Result(NodeList nl, short type)
public short getResultType()
public boolean getBooleanValue()
public double getNumberValue()
public String getStringValue()
public Node getSingleNodeValue()
public boolean getInvalidIteratorState()
public int getSnapshotLength()
public Node iterateNext()
xpath.XPathResult
.public Node snapshotItem(int i)
i
th item in the snapshot.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.