//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2018 Saxonica Limited. // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// package net.sf.saxon.om; import net.sf.saxon.tree.iter.AtomicIterator; import net.sf.saxon.value.AtomicValue; /** * Interface representing a sequence of atomic values. This is often used to represent the * typed value of a node. In most cases the typed value of a node is a single atomic value, * so the class AtomicValue implements this interface. *
An AtomicSequence is always represented as a GroundedValue: that is, the entire sequence * is in memory, making operations such as {@link #itemAt(int)} and {@link #getLength()} possible.
*/ public interface AtomicSequence extends GroundedValueIn the case of data types that are partially ordered, the returned Comparable extends the standard * semantics of the compareTo() method by returning the value {@link SequenceTool#INDETERMINATE_ORDERING} when there * is no defined order relationship between two given values.
* * @return a Comparable that follows XML Schema comparison rules */ Comparable getSchemaComparable(); /** * Get a string representation of the sequence. The is the space-separated concatenation of the result of * casting each of the items in the sequence to xs:string * @return a whitespace-separated concatenation of the string values of the items making up the sequence, * as a CharSequence. */ CharSequence getStringValueCS(); /** * Get a string representation of the sequence. The is the space-separated concatenation of the result of * casting each of the items in the sequence to xs:string * * @return a whitespace-separated concatenation of the string values of the items making up the sequence, * as a String. */ String getStringValue(); }