|
|||||||||||
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.XBoolean
XBoolean represents a XPath object with type boolean.
Field Summary | |
static XBoolean |
FALSE
The XBoolean with value 'false'. |
static XBoolean |
TRUE
The XBoolean with value 'true'. |
Fields inherited from class jd.xml.xpath.object.XObject |
TYPE_BOOLEAN, TYPE_NODESET, TYPE_NUMBER, TYPE_STRING, TYPE_VARIABLE, TYPES |
Method Summary | |
int |
canConvertTo(Class javaClass)
Test if the XObject can be converted to an object with the given class. |
boolean |
compare(Equality equality,
double value)
Return if this XObject equals the given value. |
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. |
static XBoolean |
getBoolean(boolean value)
Get a XBoolean for the given primitive boolean value. |
int |
getType()
Return XObject.TYPE_BOOLEAN |
boolean |
toBooleanValue()
Return the primitive boolean value of this XBoolean. |
double |
toNumberValue()
Convert to a number. |
static double |
toNumberValue(boolean b)
Convert to a number. |
String |
toStringValue()
Convert the value of this XBoolean as a string. |
static String |
toStringValue(boolean b)
Convert the boolean value to a string. |
Object |
toValue()
Return a Boolean object representing the value of this XBoolean. |
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, getTypeName, getTypeName, hashCode, toNodeSet, toString, toXObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final XBoolean TRUE
public static final XBoolean FALSE
Method Detail |
public static XBoolean getBoolean(boolean value)
public int getType()
getType
in class XObject
public Object toValue()
toValue
in class XObject
public Object toValue(Class javaClass)
toValue
in class XObject
public int canConvertTo(Class javaClass)
canConvertTo
in class XObject
public boolean toBooleanValue()
toBooleanValue
in class XObject
public double toNumberValue()
toNumberValue
in class XObject
public static double toNumberValue(boolean b)
public String toStringValue()
toStringValue
in class XObject
public static String toStringValue(boolean b)
public boolean compare(Equality equality, String value)
compare
in class XObject
public boolean compare(Equality equality, double value)
compare
in class XObject
public boolean equals(Object obj)
equals
in class XObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |