|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.expr.Expression com.icl.saxon.expr.Value com.icl.saxon.expr.BooleanValue
A boolean XPath value
Field Summary |
Fields inherited from class com.icl.saxon.expr.Value |
ANY, BOOLEAN, NODESET, NUMBER, OBJECT, STRING |
Fields inherited from class com.icl.saxon.expr.Expression |
staticContext |
Constructor Summary | |
BooleanValue(boolean value)
Constructor: create a boolean value |
Method Summary | |
boolean |
asBoolean()
Convert to boolean (null operation) |
double |
asNumber()
Convert to number |
java.lang.String |
asString()
Convert to string |
int |
conversionPreference(java.lang.Class required)
Get conversion preference for this value to a Java class. |
java.lang.Object |
convertToJava(java.lang.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 |
Methods inherited from class com.icl.saxon.expr.Value |
compare, equals, evaluate, getDependencies, inverse, notEquals, numericCompare, reduce, simplify, stringToNumber |
Methods inherited from class com.icl.saxon.expr.Expression |
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BooleanValue(boolean value)
value
- the initial value, true or falseMethod Detail |
public java.lang.String asString()
asString
in class Value
public double asNumber()
asNumber
in class Value
public boolean asBoolean()
asBoolean
in class Value
public int getDataType()
getDataType
in class Expression
public int conversionPreference(java.lang.Class required)
conversionPreference
in class Value
public java.lang.Object convertToJava(java.lang.Class target) throws XPathException
convertToJava
in class Value
target
- The class required by the external function
XPathException
public void display(int level)
display
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |