|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xpath.expr.Expression
org.planx.xpath.object.XObject
org.planx.xpath.object.XSimple
org.planx.xpath.object.XBoolean
public class XBoolean
A boolean value returned by an XPath expression.
| Field Summary | |
|---|---|
static XBoolean |
FALSE
|
static XBoolean |
TRUE
|
| Constructor Summary | |
|---|---|
XBoolean(boolean value)
Construct an XBoolean with the specified boolean value. |
|
| Method Summary | |
|---|---|
boolean |
booleanValue()
Returns the boolean value of this XBoolean. |
double |
doubleValue()
Returns the double value of this XBoolean. |
boolean |
equals(Object o)
Returns true if and only if o is
an instance of XBoolean and it has the same boolean
value as this. |
int |
hashCode()
Returns a hash code value for this object. |
String |
stringValue()
Returns the string "true" if this XBoolean represents the value true. |
String |
toString()
Returns the string "true" if this XBoolean represents the value true. |
| Methods inherited from class org.planx.xpath.object.XObject |
|---|
evaluate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final XBoolean FALSE
public static final XBoolean TRUE
| Constructor Detail |
|---|
public XBoolean(boolean value)
| Method Detail |
|---|
public boolean booleanValue()
booleanValue in class XObjectpublic double doubleValue()
true is converted to 1 and
false is converted to 0.
doubleValue in class XSimplepublic String stringValue()
true. Otherwise returns the string "false".
stringValue in class XSimplepublic String toString()
true. Otherwise returns the string "false".
toString in class Objectpublic boolean equals(Object o)
o is
an instance of XBoolean and it has the same boolean
value as this.
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||