| |
|
| org.apache.xpath.objects.XObject org.apache.xpath.objects.XBoolean
All known Subclasses: org.apache.xpath.objects.XBooleanStatic,
XBoolean | public class XBoolean extends XObject (Code) | | This class represents an XPath boolean object, and is capable of
converting the boolean to other types, such as a string.
|
Field Summary | |
final public static XBoolean | S_FALSE A true boolean object so we don't have to keep creating them. | final public static XBoolean | S_TRUE A true boolean object so we don't have to keep creating them. | final static long | serialVersionUID |
Constructor Summary | |
public | XBoolean(boolean b) Construct a XBoolean object. | public | XBoolean(Boolean b) Construct a XBoolean object. |
Method Summary | |
public boolean | bool() Cast result object to a boolean. | public boolean | equals(XObject obj2) Tell if two objects are functionally equal. | public int | getType() Tell that this is a CLASS_BOOLEAN. | public String | getTypeString() Given a request type, return the equivalent string. | public double | num() Cast result object to a number. | public Object | object() Return a java object that's closest to the representation
that should be handed to an extension. | public String | str() Cast result object to a string. |
S_FALSE | final public static XBoolean S_FALSE(Code) | | A true boolean object so we don't have to keep creating them.
|
S_TRUE | final public static XBoolean S_TRUE(Code) | | A true boolean object so we don't have to keep creating them.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
XBoolean | public XBoolean(boolean b)(Code) | | Construct a XBoolean object.
Parameters: b - Value of the boolean object |
XBoolean | public XBoolean(Boolean b)(Code) | | Construct a XBoolean object.
Parameters: b - Value of the boolean object |
bool | public boolean bool()(Code) | | Cast result object to a boolean.
The object value as a boolean |
getType | public int getType()(Code) | | Tell that this is a CLASS_BOOLEAN.
type of CLASS_BOOLEAN |
getTypeString | public String getTypeString()(Code) | | Given a request type, return the equivalent string.
For diagnostic purposes.
type string "#BOOLEAN" |
num | public double num()(Code) | | Cast result object to a number.
numeric value of the object value |
object | public Object object()(Code) | | Return a java object that's closest to the representation
that should be handed to an extension.
The object's value as a java object |
str | public String str()(Code) | | Cast result object to a string.
The object's value as a string |
|
|
|