public class UntypedAtomicValue extends StringValue
StringValue.CharacterIterator, StringValue.UnicodeCharacterIterator
Modifier and Type | Field and Description |
---|---|
static UntypedAtomicValue |
ZERO_LENGTH_UNTYPED |
EMPTY_STRING, FALSE, SINGLE_SPACE, TRUE, value
NaN_MATCH_KEY, typeLabel
Constructor and Description |
---|
UntypedAtomicValue(CharSequence value)
Constructor
|
Modifier and Type | Method and 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.
|
AtomicValue |
copyAsSubType(AtomicType typeLabel)
Create a copy of this atomic value, with a different type label
|
DoubleValue |
getDoubleValueIfKnown()
Get the result of converting this untyped atomic value to a double, if this is already known.
|
BuiltInAtomicType |
getPrimitiveType()
Determine the primitive type of the value.
|
void |
setDoubleValue(DoubleValue value)
Set the equivalent double value
|
codepointEquals, containsSurrogatePairs, contract, diagnosticDisplay, effectiveBooleanValue, equals, expand, getPrimitiveStringValue, getSchemaComparable, getStringLength, getStringLength, getStringLengthUpperBound, getUnicodeString, getXPathComparable, hashCode, isIdentical, isKnownToContainNoSurrogates, isZeroLength, iterateCharacters, makeStringValue, setContainsNoSurrogates, setStringValueCS, toString
asAtomic, asMapKey, atomize, checkPermittedContents, getCanonicalLexicalRepresentation, getCardinality, getComponent, getItemType, getStringValue, getStringValueCS, getUType, head, identityHashCode, isIdentical, isNaN, itemAt, iterate, iterator, process, setTypeLabel
getLength, reduce, subsequence
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLength
reduce, subsequence
public static final UntypedAtomicValue ZERO_LENGTH_UNTYPED
public UntypedAtomicValue(CharSequence value)
value
- the String value. Null is taken as equivalent to "".public AtomicValue copyAsSubType(AtomicType typeLabel)
copyAsSubType
in class StringValue
typeLabel
- 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 StringValue
public int compareTo(AtomicValue other, StringCollator collator, XPathContext context)
other
- the value to compare this value withcollator
- the collation to be used for comparing stringscontext
- the XPath dynamic contextClassCastException
- if the value cannot be cast to the type of the other operandpublic DoubleValue getDoubleValueIfKnown()
public void setDoubleValue(DoubleValue value)
value
- the DoubleValue that is equivalent to this untyped atomic valueCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.