java.io.Serializable, PullEvent, SequenceIterable, GroundedValue, Item, ValueRepresentation, ConversionResultpublic class UntypedAtomicValue extends StringValue
StringValue.CharacterIterator| Modifier and Type | Field | Description |
|---|---|---|
static UntypedAtomicValue |
ZERO_LENGTH_UNTYPED |
typeLabelEMPTY_STRING, FALSE, length, SINGLE_SPACE, TRUE, valueEMPTY_CLASS_ARRAY, INDETERMINATE_ORDERINGEMPTY_VALUE_ARRAY| Constructor | Description |
|---|---|
UntypedAtomicValue(java.lang.CharSequence value) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(AtomicValue other,
StringCollator collator,
XPathContext context) |
Compare an untypedAtomic value with another value, using a given collator to perform
any string comparisons.
|
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
|
BuiltInAtomicType |
getPrimitiveType() |
Determine the primitive type of the value.
|
asAtomic, checkPermittedContents, convert, convert, getCardinality, getComponent, getItemType, getLength, getTypedValue, getTypeLabel, isNaN, itemAt, iterate, process, setTypeLabel, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcodepointEquals, containsSurrogatePairs, contract, convertStringToAtomicType, convertStringToBuiltInType, diagnosticDisplay, effectiveBooleanValue, equals, expand, expand, getSchemaComparable, getStringLength, getStringLength, getStringValue, getStringValueCS, getXPathComparable, isZeroLength, iterateCharacters, makeRestrictedString, makeStringValue, setStringValueCS, toString, validateasItem, asItem, asIterator, asValue, convertToJava, fromItem, getCanonicalLexicalRepresentation, getIterator, iterate, makeQNameValue, reduce, stringToNumberpublic static final UntypedAtomicValue ZERO_LENGTH_UNTYPED
public UntypedAtomicValue(java.lang.CharSequence value)
value - the String value. Null is taken as equivalent to "".public AtomicValue copyAsSubType(AtomicType typeLabel)
copyAsSubType in class StringValuetypeLabel - the type label of the new copy. The caller is responsible for checking that
the value actually conforms to this type.public BuiltInAtomicType getPrimitiveType()
getPrimitiveType in class StringValuepublic ConversionResult 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 - XPath dynamic context. Used only where the target type is one such as
NCName whose definition is context-sensitivepublic int compareTo(AtomicValue other, StringCollator collator, XPathContext context)
java.lang.ClassCastException - if the value cannot be cast to the type of the other operand