Class BooleanValue
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 Expression
staticContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanConvert to boolean (null operation)doubleasNumber()Convert to numberasString()Convert to stringintconversionPreference(Class required) Get conversion preference for this value to a Java class.convertToJava(Class target) Convert to Java object (for passing to external functions)voiddisplay(int level) Diagnostic print of expression structureintDetermine the data type of the exprssionMethods inherited from class Value
compare, equals, evaluate, getDependencies, inverse, notEquals, numericCompare, reduce, simplify, stringToNumberMethods inherited from class Expression
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent
-
Constructor Details
-
BooleanValue
public BooleanValue(boolean value) Constructor: create a boolean value- Parameters:
value- the initial value, true or false
-
-
Method Details
-
asString
-
asNumber
-
asBoolean
-
getDataType
public int getDataType()Determine the data type of the exprssion- Specified by:
getDataTypein classExpression- Returns:
- Value.BOOLEAN,
-
conversionPreference
Get conversion preference for this value to a Java class. A low result indicates higher preference.- Specified by:
conversionPreferencein classValue
-
convertToJava
Convert to Java object (for passing to external functions)- Specified by:
convertToJavain classValue- Parameters:
target- The class required by the external function- Returns:
- an object of the target class
- Throws:
XPathException
-
display
public void display(int level) Diagnostic print of expression structure- Specified by:
displayin classExpression
-