|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xpath.XPathResult
public abstract class XPathResult
Abstract class representing the result of an XPath expression. An XPath result can be one of the following four types:
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
.
Field Summary | |
---|---|
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 Summary | |
---|---|
XPathResult()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public XPathResult()
Method Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |