|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xpath.object.XObject
jd.xml.xpath.object.XNumber
XNumber represents a XPath object with type number.
| Field Summary |
| Fields inherited from class jd.xml.xpath.object.XObject |
TYPE_BOOLEAN, TYPE_NODESET, TYPE_NUMBER, TYPE_STRING, TYPE_VARIABLE, TYPES |
| Constructor Summary | |
XNumber(double value)
Create a new XNumber with the given value. |
|
| Method Summary | |
int |
canConvertTo(Class javaClass)
Test if the XObject can be converted to an object with the given class. |
boolean |
compare(Equality equality,
String value)
Return if this XObject equals the given value. |
boolean |
equals(Object obj)
Test if the given object equals this object. |
int |
getType()
Return XObject.TYPE_NUMBER. |
int |
hashCode()
Return a hashcode for the number. |
boolean |
toBooleanValue()
Convert the number to a boolean value. |
static boolean |
toBooleanValue(double value)
Convert the number to a boolean value. |
double |
toNumberValue()
Convert the number to a double value. |
static Object |
toNumberValue(double value,
Class javaClass)
Convert a double value to a Number object. |
String |
toStringValue()
Convert the number to a string value. |
static String |
toStringValue(double value)
Convert the number to a string value. |
static String |
toStringValue(int value)
Convert the number to a string value. |
Object |
toValue()
Return a Double object for this numbers value. |
Object |
toValue(Class javaClass)
Convert the objects value to an object of the given class. |
| Methods inherited from class jd.xml.xpath.object.XObject |
compare, compare, compare, compare, compare, getTypeName, getTypeName, toNodeSet, toString, toXObject |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XNumber(double value)
| Method Detail |
public Object toValue()
toValue in class XObjectpublic Object toValue(Class javaClass)
toValue in class XObject
public static Object toNumberValue(double value,
Class javaClass)
public int canConvertTo(Class javaClass)
canConvertTo in class XObjectpublic int getType()
getType in class XObjectpublic boolean toBooleanValue()
toBooleanValue in class XObjectpublic static boolean toBooleanValue(double value)
public double toNumberValue()
toNumberValue in class XObjectpublic String toStringValue()
toStringValue in class XObjectpublic static String toStringValue(int value)
public static String toStringValue(double value)
public boolean compare(Equality equality,
String value)
compare in class XObjectpublic int hashCode()
hashCode in class XObjectpublic boolean equals(Object obj)
equals in class XObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||