public class UntypedAtomicValue extends StringValue
StringValue.CharacterIterator| Modifier and Type | Field and Description |
|---|---|
(package private) DoubleValue |
doubleValue |
static UntypedAtomicValue |
ZERO_LENGTH_UNTYPED |
EMPTY_STRING, FALSE, length, SINGLE_SPACE, TRUE, valueEMPTY_CLASS_ARRAYEMPTY_VALUE_ARRAYEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
UntypedAtomicValue(java.lang.CharSequence value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object other,
java.util.Comparator collator,
XPathContext context)
Compare an untypedAtomic value with another value, using a given collator to perform
any string comparisons.
|
AtomicValue |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context)
Convert to target data type
|
ItemType |
getItemType(TypeHierarchy th)
Return the type of the expression
|
codepointEquals, containsSurrogatePairs, contract, convertStringToAtomicType, convertStringToBuiltInType, convertToJava, effectiveBooleanValue, equals, expand, expand, getStringLength, getStringLength, getStringValue, getStringValueCS, hashCode, isZeroLength, iterateCharacters, makeStringValue, toStringcheckPermittedContents, convert, convert, display, evaluateAsString, evaluateItem, getCardinality, getComponent, getImplementationMethod, getLength, getPrimitiveValue, getTypedValue, hasBuiltInType, iterate, processasItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheckpublic static final UntypedAtomicValue ZERO_LENGTH_UNTYPED
DoubleValue doubleValue
public UntypedAtomicValue(java.lang.CharSequence value)
value - the String value. Null is taken as equivalent to "".public ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class StringValueth - public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
convertPrimitive in class StringValuerequiredType - type code of the required atomic typevalidate - 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
a date or time: it provides the implicit timezone.public int compareTo(java.lang.Object other,
java.util.Comparator collator,
XPathContext context)
java.lang.ClassCastException - if the value cannot be cast to the type of the other operand