|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xpath.XPathResult
org.exolab.adaptx.xpath.NumberResult
public final class 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 valueMethod Detail |
---|
public int getResultType()
getResultType
in class XPathResult
XPathResult.NUMBER
public boolean booleanValue()
booleanValue
in class XPathResult
public double numberValue()
numberValue
in class XPathResult
public java.lang.String stringValue()
stringValue
in class XPathResult
public java.lang.Object javaObject()
Double
with the same number value.
javaObject
in class XPathResult
public boolean equals(XPathResult result)
equals
in class XPathResult
result
- 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 |