net.sf.saxon.value
public class ObjectValue extends AtomicValue
Constructor Summary | |
---|---|
ObjectValue()
Default constructor for use in subclasses | |
ObjectValue(Object object)
Constructor | |
ObjectValue(Object object, ExternalObjectType type)
Constructor |
Method Summary | |
---|---|
ConversionResult | convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type |
AtomicValue | copyAsSubType(AtomicType typeLabel)
Create a copy of this atomic value, with a different type label
|
String | displayTypeName()
Display the type name for use in error messages |
boolean | effectiveBooleanValue()
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 items in the expression, if possible
|
Object | getObject()
Get the encapsulated object |
CharSequence | getPrimitiveStringValue()
Get the value as a String |
BuiltInAtomicType | getPrimitiveType()
Determine the primitive type of the value. |
Comparable | getSchemaComparable() |
Object | getXPathComparable(boolean ordered, StringCollator collator, XPathContext context)
Get an object value that implements the XPath equality and ordering comparison semantics for this value.
|
int | hashCode() |
void | setValue(Object value)
Set the value in this object value |
Parameters: object the object to be encapsulated
Parameters: object the object to be encapsulated type the type of the external object
Parameters: typeLabel the type label of the new copy. The caller is responsible for checking that the value actually conforms to this type.
Returns: the type name
Returns: true, unless the value is boolean false, numeric zero, or zero-length string
Throws: ClassCastException if they are not comparable
Parameters: th The TypeHierarchy.
Returns: for the default implementation: AnyItemType (not known)
Returns: the Java object that this external object wraps
Returns: a String representation of the value
Parameters: ordered true if an ordered comparison is required. In this case the result is null if the type is unordered; in other cases the returned value will be a Comparable. collator context the XPath dynamic evaluation context, used in cases where the comparison is context sensitive @return an Object whose equals() and hashCode() methods implement the XPath comparison semantics with respect to this atomic value. If ordered is specified, the result will either be null if no ordering is defined, or will be a Comparable
Parameters: value the external value to be wrapped