public class UntypedAtomicValue extends StringValue
StringValue.Builder, StringValue.CharacterIterator, StringValue.UnicodeCharacterIterator| Modifier and Type | Field and Description |
|---|---|
static UntypedAtomicValue |
ZERO_LENGTH_UNTYPED |
EMPTY_STRING, FALSE, SINGLE_SPACE, TRUE, valuetypeLabel| Constructor and Description |
|---|
UntypedAtomicValue(java.lang.CharSequence value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence.
|
java.lang.String |
toShortString()
For displaying the value in error messages, prefix with "u" to highlight that it's
untyped atomic
|
codepointEquals, containsSurrogatePairs, contract, diagnosticDisplay, effectiveBooleanValue, equals, expand, getPrimitiveStringValue, getSchemaComparable, getStringLength, getStringLength, getStringLengthUpperBound, getUnicodeString, getXPathComparable, hashCode, isEmpty, isIdentical, isKnownToContainNoSurrogates, isZeroLength, iterateCharacters, makeStringValue, setContainsNoSurrogates, setStringValueCS, toStringasAtomic, asMapKey, atomize, checkPermittedContents, checkValidInJavascript, getCanonicalLexicalRepresentation, getCardinality, getComponent, getGenre, getItemType, getLength, getStringValue, getUType, head, identityHashCode, isIdentical, isNaN, itemAt, iterate, iterator, setTypeLabelclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStreamed, reduce, subsequence, toGroundedValueasIterable, concatenate, containsNode, materializemakeRepeatablepublic static final UntypedAtomicValue ZERO_LENGTH_UNTYPED
public UntypedAtomicValue(java.lang.CharSequence value)
value - the String value. Must not be null. The caller must ensure that the
value will not subsequently change, even though it may be a mutable
object such as a FastStringBuffer.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 final java.lang.CharSequence getStringValueCS()
getStringValueCS in interface AtomicSequencegetStringValueCS in interface GroundedValuegetStringValueCS in interface ItemgetStringValueCS in class AtomicValueItem.getStringValue()public java.lang.String toShortString()
toShortString in interface GroundedValuetoShortString in interface ItemtoShortString in class StringValueCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.