public class DotNetObjectValue extends ObjectValue
typeLabel
EMPTY_CLASS_ARRAY, INDETERMINATE_ORDERING
EMPTY_VALUE_ARRAY
Constructor and Description |
---|
DotNetObjectValue(java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
ConversionResult |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context)
Convert to target data type
|
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the expression
|
copyAsSubType, displayTypeName, effectiveBooleanValue, equals, getObject, getPrimitiveType, getSchemaComparable, getStringValue, getXPathComparable, hashCode, setValue
asAtomic, checkPermittedContents, convert, convert, getCardinality, getComponent, getLength, getStringValueCS, getTypedValue, getTypeLabel, isNaN, itemAt, iterate, process, setTypeLabel, subsequence, toString
asItem, asItem, asIterator, asValue, convertToJava, fromItem, getCanonicalLexicalRepresentation, getIterator, iterate, makeQNameValue, reduce, stringToNumber
public ConversionResult convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
convertPrimitive
in class ObjectValue
requiredType
- the required atomic type. This must either be a primitive type, or a built-in
type derived from the same primitive type as this atomic value.validate
- true if validation is required. If set to false, the caller guarantees that
the value is valid for the target data type, and that further validation
is therefore not required.
Note that a validation failure may be reported even if validation was not requested.context
- The conversion context to be used. This is required at present only when converting to
xs:Name or similar types: it determines the NameChecker to be used.public ItemType getItemType(TypeHierarchy th)
getItemType
in class ObjectValue
th
- the type hierarchy cache