java.io.Serializable
BooleanResult
, NodeSet
, NumberResult
, StringResult
, XSLTFunctionResult
public abstract class XPathResult
extends java.lang.Object
implements java.io.Serializable
BOOLEAN
represented by
an object of type BooleanResult
.STRING
represented by
an object of type StringResult
.NUMBER
represented by
an object of type NumberResult
.NODE_SET
represented by
an object of type NodeSet
.Modifier and Type | Field | Description |
---|---|---|
static int |
BOOLEAN |
An XPath result of type boolean.
|
static int |
NODE_SET |
An XPath result of type node-set.
|
static int |
NUMBER |
An XPath result of type number.
|
static int |
STRING |
An XPath result of type string.
|
static int |
USER_DEFINED |
An XPath result used for XPath extensions
|
Constructor | Description |
---|---|
XPathResult() |
Modifier and Type | Method | Description |
---|---|---|
abstract boolean |
booleanValue() |
Returns the result as a boolean value.
|
abstract boolean |
equals(XPathResult result) |
Returns true if the given expression is the same tyoe as
this result and has the same value as this result.
|
abstract int |
getResultType() |
Returns the type of this result.
|
abstract java.lang.Object |
javaObject() |
Returns the result as a Java object.
|
abstract double |
numberValue() |
Returns the result as a number value.
|
abstract java.lang.String |
stringValue() |
Returns the result as a string value.
|
public static final int BOOLEAN
BooleanResult
.public static final int NUMBER
NumberResult
.public static final int STRING
StringResult
.public static final int NODE_SET
NodeSet
.public static final int USER_DEFINED
public abstract int getResultType()
public abstract boolean booleanValue()
public abstract double numberValue()
public abstract java.lang.String stringValue()
public abstract java.lang.Object javaObject()
Boolean
for a boolean result, an object of
type String
for a string result, an object of type
Double
for a number result, or an object of type
NodeSet
for a node-set.public abstract boolean equals(XPathResult result)
result
- An XPath result