com.icl.saxon.expr
public final class BooleanValue extends Value
| Constructor Summary | |
|---|---|
| BooleanValue(boolean value)
Constructor: create a boolean value | |
| Method Summary | |
|---|---|
| boolean | asBoolean()
Convert to boolean (null operation) |
| double | asNumber()
Convert to number |
| String | asString()
Convert to string |
| int | conversionPreference(Class required)
Get conversion preference for this value to a Java class. |
| Object | convertToJava(Class target)
Convert to Java object (for passing to external functions) |
| void | display(int level)
Diagnostic print of expression structure |
| int | getDataType()
Determine the data type of the exprssion |
Parameters: value the initial value, true or false
Returns: the value
Returns: 1 for true, 0 for false
Returns: "true" or "false"
Returns: Value.BOOLEAN,