|
||||||||||
| 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.NumberResult
Represents a number result. This is an immutable object.
| Field Summary | |
|---|---|
static NumberResult |
NaN
Number result representing Double.NaN (not a number). |
| Fields inherited from class org.exolab.adaptx.xpath.XPathResult |
|---|
BOOLEAN, NODE_SET, NUMBER, STRING, USER_DEFINED |
| Constructor Summary | |
|---|---|
NumberResult(double value)
Creates a new number result with the given value. |
|
| Method Summary | |
|---|---|
boolean |
booleanValue()
Returns the result as a boolean value. |
boolean |
equals(XPathResult result)
Returns true if the given result is a number result and has the same number value. |
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 NumberResult NaN
Double.NaN (not a number).
| Constructor Detail |
public NumberResult(double value)
value - The number value| Method Detail |
public int getResultType()
getResultType in class XPathResultXPathResult.NUMBERpublic boolean booleanValue()
booleanValue in class XPathResultpublic double numberValue()
numberValue in class XPathResultpublic java.lang.String stringValue()
stringValue in class XPathResultpublic java.lang.Object javaObject()
Double with the same number 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 | |||||||||