org.apache.xpath.objects
public class XBoolean extends XObject
UNKNOWN: advanced
Field Summary | |
---|---|
static XBoolean | S_FALSE
A true boolean object so we don't have to keep creating them. |
static XBoolean | S_TRUE
A true boolean object so we don't have to keep creating them. |
Constructor Summary | |
---|---|
XBoolean(boolean b)
Construct a XBoolean object.
| |
XBoolean(Boolean b)
Construct a XBoolean object.
|
Method Summary | |
---|---|
boolean | bool()
Cast result object to a boolean.
|
boolean | equals(XObject obj2)
Tell if two objects are functionally equal.
|
int | getType()
Tell that this is a CLASS_BOOLEAN.
|
String | getTypeString()
Given a request type, return the equivalent string.
|
double | num()
Cast result object to a number.
|
Object | object()
Return a java object that's closest to the representation
that should be handed to an extension.
|
String | str()
Cast result object to a string.
|
UNKNOWN: internal
UNKNOWN: internal
Parameters: b Value of the boolean object
Parameters: b Value of the boolean object
Returns: The object value as a boolean
Parameters: obj2 Object to compare to this
Returns: True if the two objects are equal
Throws: javax.xml.transform.TransformerException
Returns: type of CLASS_BOOLEAN
Returns: type string "#BOOLEAN"
Returns: numeric value of the object value
Returns: The object's value as a java object
Returns: The object's value as a string