public class NestedIntegerValue extends AtomicValue implements XPathComparable, AtomicMatchKey
Although the class is implemented as an atomic type derived from xs:string, it has not been integrated into the schema type hierarchy and cannot be used directly in schema validation.
The class provides "smart" ordering, for example 1 < 1.2 < 1.12 < 1.12.6
| Modifier and Type | Field and Description |
|---|---|
static NestedIntegerValue |
ONE |
static NestedIntegerValue |
TWO |
typeLabel| Constructor and Description |
|---|
NestedIntegerValue(int[] val) |
NestedIntegerValue(java.lang.String v) |
| Modifier and Type | Method and Description |
|---|---|
NestedIntegerValue |
append(int leaf) |
int |
compareTo(XPathComparable other) |
AtomicValue |
copyAsSubType(AtomicType typeLabel)
Create a copy of this atomic value, with a different type label
|
boolean |
equals(java.lang.Object o)
The equals() methods on atomic values is defined to follow the semantics of eq when applied
to two atomic values.
|
int |
getDepth() |
int |
getLeaf() |
UnicodeString |
getPrimitiveStringValue()
Convert the value to a string, using the serialization rules for the primitive type.
|
BuiltInAtomicType |
getPrimitiveType()
Determine the primitive type of the value.
|
NestedIntegerValue |
getStem() |
XPathComparable |
getXPathComparable(StringCollator collator,
int implicitTimezone)
Get an object value that implements the XPath equality and ordering comparison semantics for this value.
|
AtomicMatchKey |
getXPathMatchKey(StringCollator collator,
int implicitTimezone)
Get an object value that implements the XPath equality comparison semantics for this value.
|
int |
hashCode()
Returns a hash code value for the object.
|
static NestedIntegerValue |
parse(java.lang.String v) |
asAtomic, asMapKey, atomize, checkPermittedContents, checkValidInJavascript, effectiveBooleanValue, getCanonicalLexicalRepresentation, getCardinality, getComponent, getGenre, getItemType, getLength, getUnicodeStringValue, getUType, head, identityHashCode, isIdentical, isIdentical, isNaN, isUntypedAtomic, itemAt, iterate, iterator, setTypeLabel, show, toShortString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasAtomicgetStringValue, isStreamed, reduce, subsequenceasIterable, concatenate, containsNode, materializemakeRepeatablepublic static NestedIntegerValue ONE
public static NestedIntegerValue TWO
public NestedIntegerValue(java.lang.String v)
throws XPathException
XPathExceptionpublic NestedIntegerValue(int[] val)
public static NestedIntegerValue parse(java.lang.String v) throws XPathException
XPathExceptionpublic NestedIntegerValue append(int leaf)
public NestedIntegerValue getStem()
public int getDepth()
public int getLeaf()
public XPathComparable getXPathComparable(StringCollator collator, int implicitTimezone) throws NoDynamicContextException
AtomicValuegetXPathComparable in class AtomicValuecollator - the collation to be used when comparing stringsimplicitTimezone - the implicit timezone in the dynamic context, used when comparing
dates/times with and without timezoneNoDynamicContextException - if the supplied implicit timezone is "NO_TIMEZONE" (meaning
unknown), and the implicit timezone is actually required because the value in question is a date/time
value with no timezone. This can cause a failure to evaluate expressions statically (because the implicit
timezone is not known statically), and it will then be caught, meaning that the expression has to be
evaluated dynamically.public AtomicMatchKey getXPathMatchKey(StringCollator collator, int implicitTimezone)
AtomicValueAtomicMatchKey provided that its equality semantics are context-free.getXPathMatchKey in class AtomicValuecollator - the collation to be used when comparing stringsimplicitTimezone - the implicit timezone in the dynamic context, used when comparing
dates/times with and without timezonepublic boolean equals(java.lang.Object o)
AtomicValueThe hashCode() method is consistent with equals().
equals in class AtomicValueo - the other valuepublic int hashCode()
hashCode in class AtomicValuepublic BuiltInAtomicType getPrimitiveType()
AtomicValuegetPrimitiveType in class AtomicValuepublic AtomicValue copyAsSubType(AtomicType typeLabel)
AtomicValuecopyAsSubType in class AtomicValuetypeLabel - the type label of the new copy. The caller is responsible for checking that
the value actually conforms to this type.public UnicodeString getPrimitiveStringValue()
AtomicValuegetPrimitiveStringValue in class AtomicValuepublic int compareTo(XPathComparable other)
compareTo in interface java.lang.Comparable<XPathComparable>Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.