com.icl.saxon.expr
Class  ObjectValue
java.lang.Object
  |
  +--com.icl.saxon.expr.Expression
        |
        +--com.icl.saxon.expr.Value
              |
              +--com.icl.saxon.expr.ObjectValue
- public class ObjectValue- extends Value
An XPath value that encapsulates a Java object. Such a value can only be obtained by
 calling an extension function that returns it.
 
 
| 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
 | 
|  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
 | 
|  boolean | isNumeric()Determine whether the expression is numeric
 | 
|  java.lang.String | toString()Return a string representation for diagnostics
 | 
 
 
| Methods inherited from class com.icl.saxon.expr.Expression | 
| containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, isRelative, make, make, setStaticContext, usesCurrent | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
ObjectValue
public ObjectValue(java.lang.Object object)
- Constructor
asString
public java.lang.String asString()
- Get the value as a String- 
- Overrides:
- asStringin class- Value
 
- 
- Returns:
- a String representation of the value
 
asNumber
public double asNumber()
- Get the value as a number- 
- Overrides:
- asNumberin class- Value
 
- 
- Returns:
- the numeric value
 
asBoolean
public boolean asBoolean()
- Convert the value to a boolean- 
- Overrides:
- asBooleanin class- Value
 
- 
- Returns:
- the boolean value
 
getDataType
public int getDataType()
- Determine the data type of the expression- 
- Overrides:
- getDataTypein class- Expression
 
- 
- Returns:
- Value.OBJECT
 
isNumeric
public boolean isNumeric()
- Determine whether the expression is numeric- 
- Overrides:
- isNumericin class- Expression
 
- 
- Returns:
- false
 
getObject
public java.lang.Object getObject()
- Get the encapsulated object
toString
public java.lang.String toString()
- Return a string representation for diagnostics- 
- Overrides:
- toStringin class- java.lang.Object
 
equals
public boolean equals(ObjectValue other)
- Determine if two ObjectValues are equal