org.apache.xpath.objects
Class XBoolean
- Cloneable, Serializable, ExpressionNode, SourceLocator, XPathVisitable
This class represents an XPath boolean object, and is capable of
converting the boolean to other types, such as a string.
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.
|
XBoolean(Boolean b) - Construct a XBoolean object.
|
XBoolean(boolean b) - Construct a XBoolean object.
|
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.
|
allowDetachToRelease , appendToFsb , bool , boolWithSideEffects , callVisitors , castToType , create , create , deepEquals , destruct , detach , dispatchCharactersEvents , equals , execute , fixupVariables , getFresh , getType , getTypeString , greaterThan , greaterThanOrEqual , iter , lessThan , lessThanOrEqual , mutableNodeset , nodelist , nodeset , notEquals , num , numWithSideEffects , object , reset , rtf , rtf , rtree , rtree , str , toString , xstr |
asIterator , asIteratorRaw , asNode , assertion , bool , canTraverseOutsideSubtree , deepEquals , error , execute , execute , execute , execute , executeCharsToContentHandler , exprAddChild , exprGetChild , exprGetNumChildren , exprGetParent , exprSetParent , fixupVariables , getColumnNumber , getExpressionOwner , getLineNumber , getPublicId , getSystemId , isNodesetExpr , isStableNumber , num , warn , xstr |
S_FALSE
public static final XBoolean S_FALSE
A true boolean object so we don't have to keep creating them.
S_TRUE
public static final XBoolean S_TRUE
A true boolean object so we don't have to keep creating them.
XBoolean
public XBoolean(Boolean b)
Construct a XBoolean object.
b
- Value of the boolean object
XBoolean
public XBoolean(boolean b)
Construct a XBoolean object.
b
- Value of the boolean object
bool
public boolean bool()
Cast result object to a boolean.
- bool in interface XObject
- The object value as a boolean
equals
public boolean equals(XObject obj2)
Tell if two objects are functionally equal.
- equals in interface XObject
obj2
- Object to compare to this
- True if the two objects are equal
getType
public int getType()
Tell that this is a CLASS_BOOLEAN.
- getType in interface XObject
getTypeString
public String getTypeString()
Given a request type, return the equivalent string.
For diagnostic purposes.
- getTypeString in interface XObject
num
public double num()
Cast result object to a number.
- num in interface XObject
- numeric value of the object value
object
public Object object()
Return a java object that's closest to the representation
that should be handed to an extension.
- object in interface XObject
- The object's value as a java object
str
public String str()
Cast result object to a string.
- str in interface XObject
- The object's value as a string
Copyright B) 2006 Apache XML Project. All Rights Reserved.