|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icl.saxon.expr.Expression
com.icl.saxon.expr.Value
com.icl.saxon.expr.ObjectValue
An XPath value that encapsulates a Java object. Such a value can only be obtained by calling an extension function that returns it.
| 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 | |
ObjectValue(java.lang.Object object)
Constructor |
|
| Method Summary | |
boolean |
asBoolean()
Convert the value to a boolean |
double |
asNumber()
Get the value as a number |
java.lang.String |
asString()
Get the value as a 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 |
boolean |
equals(ObjectValue other)
Determine if two ObjectValues are equal |
int |
getDataType()
Determine the data type of the expression |
java.lang.Object |
getObject()
Get the encapsulated object |
| 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 ObjectValue(java.lang.Object object)
| Method Detail |
public java.lang.String asString()
asString in class Valuepublic double asNumber()
asNumber in class Valuepublic boolean asBoolean()
asBoolean in class Valuepublic int getDataType()
getDataType in class Expressionpublic java.lang.Object getObject()
public boolean equals(ObjectValue other)
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 Valuetarget - The class required by the external function
XPathExceptionpublic void display(int level)
display in class Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||