com.icl.saxon.expr
Class ObjectValue
An XPath value that encapsulates a Java object. Such a value can only be obtained by
calling an extension function that returns it.
boolean | asBoolean() - Convert the value to a boolean
|
double | asNumber() - Get the value as a number
|
String | asString() - Get the value as a 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
|
boolean | equals(ObjectValue other) - Determine if two ObjectValues are equal
|
int | getDataType() - Determine the data type of the expression
|
Object | getObject() - Get the encapsulated object
|
asBoolean , asNumber , asString , compare , conversionPreference , convertToJava , equals , evaluate , getDependencies , inverse , notEquals , numericCompare , reduce , simplify , stringToNumber |
containsReferences , display , enumerate , evaluate , evaluateAsBoolean , evaluateAsNodeSet , evaluateAsNumber , evaluateAsString , getDataType , getDependencies , getStaticContext , indent , isContextDocumentNodeSet , make , outputStringValue , reduce , setStaticContext , simplify , usesCurrent |
ObjectValue
public ObjectValue(Object object)
Constructor
asBoolean
public boolean asBoolean()
Convert the value to a boolean
- asBoolean in interface Value
- the boolean value
asNumber
public double asNumber()
Get the value as a number
- asNumber in interface Value
- the numeric value
asString
public String asString()
Get the value as a String
- asString in interface Value
- a String representation of the value
conversionPreference
public int conversionPreference(Class required)
Get conversion preference for this value to a Java class. A low result
indicates higher preference.
- conversionPreference in interface Value
convertToJava
public Object convertToJava(Class target)
throws XPathException
Convert to Java object (for passing to external functions)
- convertToJava in interface Value
display
public void display(int level)
Diagnostic print of expression structure
- display in interface Expression
equals
public boolean equals(ObjectValue other)
Determine if two ObjectValues are equal
getDataType
public int getDataType()
Determine the data type of the expression
- getDataType in interface Expression
- Value.OBJECT
getObject
public Object getObject()
Get the encapsulated object