|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.adaptx.xpath.XPathResult
|
+--org.exolab.adaptx.xpath.BooleanResult
Represents a boolean result. This is an immutable object.
| Field Summary | |
|---|---|
static BooleanResult |
FALSE
Boolean result representing false. |
static BooleanResult |
TRUE
Boolean result representing true. |
| Fields inherited from class org.exolab.adaptx.xpath.XPathResult |
|---|
BOOLEAN, NODE_SET, NUMBER, STRING, USER_DEFINED |
| Method Summary | |
|---|---|
boolean |
booleanValue()
Returns the result as a boolean value. |
boolean |
equals(XPathResult result)
Returns true if the given result is a boolean result and has the same boolean value. |
static BooleanResult |
from(boolean value)
Returns a boolean result from a boolean value. |
static BooleanResult |
from(XPathResult result)
Returns a boolean result from an XPath result. |
int |
getResultType()
Returns the type of this result. |
java.lang.Object |
javaObject()
Returns the result as a Java object. |
double |
numberValue()
Returns the result as a number value. |
java.lang.String |
stringValue()
Returns the result as a string value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final BooleanResult FALSE
public static final BooleanResult TRUE
| Method Detail |
public static BooleanResult from(boolean value)
public static BooleanResult from(XPathResult result)
Double.NaN,
a non-empty string, or a non-empty NodeSet.
result - An XPath result
public int getResultType()
getResultType in class XPathResultXPathResult.BOOLEANpublic boolean booleanValue()
booleanValue in class XPathResultpublic double numberValue()
numberValue in class XPathResultpublic java.lang.String stringValue()
stringValue in class XPathResultpublic java.lang.Object javaObject()
Boolean with the same boolean value.
javaObject in class XPathResultpublic boolean equals(XPathResult result)
equals in class XPathResultresult - An XPath result
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||