net.sf.saxon.value
public class ObjectValue extends AtomicValue
| Constructor Summary | |
|---|---|
| ObjectValue()
Default constructor for use in subclasses | |
| ObjectValue(Object object)
Constructor | |
| Method Summary | |
|---|---|
| AtomicValue | convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type |
| Object | convertToJava(Class target, XPathContext context)
Convert to Java object (for passing to external functions) |
| boolean | effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the value
|
| boolean | equals(Object other)
Determine if two ObjectValues are equal |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression |
| Object | getObject()
Get the encapsulated object |
| String | getStringValue()
Get the value as a String |
| int | hashCode() |
| void | setValue(Object value)
Set the value in this object value |
Parameters: object the object to be encapsulated
Parameters: context the evaluation context (not used in this implementation)
Returns: true, unless the value is boolean false, numeric zero, or zero-length string
Throws: ClassCastException if they are not comparable
Parameters: th
Returns: Type.OBJECT
Returns: a String representation of the value