| java.lang.Object net.sf.saxon.value.SequenceType
SequenceType | final public class SequenceType implements Serializable(Code) | | SequenceType: a sequence type consists of a primary type, which indicates the type of item,
and a cardinality, which indicates the number of occurrences permitted. Where the primary type
is element or attribute, there may also be a content type, indicating the required type
annotation on the element or attribute content.
|
ANY_SEQUENCE | final public static SequenceType ANY_SEQUENCE(Code) | | A type that allows any sequence of items
|
ATOMIC_SEQUENCE | final public static SequenceType ATOMIC_SEQUENCE(Code) | | A type that allows zero or more atomic values
|
NODE_SEQUENCE | final public static SequenceType NODE_SEQUENCE(Code) | | A type that allows a sequence of zero or more nodes
|
NUMERIC_SEQUENCE | final public static SequenceType NUMERIC_SEQUENCE(Code) | | A type that allows a sequence of zero or more numeric values
|
OPTIONAL_ATOMIC | final public static SequenceType OPTIONAL_ATOMIC(Code) | | A type that allows zero or one atomic values
|
OPTIONAL_INTEGER | final public static SequenceType OPTIONAL_INTEGER(Code) | | A type that allows a single integer
|
OPTIONAL_NODE | final public static SequenceType OPTIONAL_NODE(Code) | | A type that allows zero or one nodes
|
SINGLE_ATOMIC | final public static SequenceType SINGLE_ATOMIC(Code) | | A type that allows exactly one atomic value
|
SINGLE_INTEGER | final public static SequenceType SINGLE_INTEGER(Code) | | A type that allows a single integer
|
SINGLE_ITEM | final public static SequenceType SINGLE_ITEM(Code) | | A type that allows exactly one item, of any kind
|
SINGLE_NODE | final public static SequenceType SINGLE_NODE(Code) | | A type that allows a single node
|
SINGLE_STRING | final public static SequenceType SINGLE_STRING(Code) | | A type that allows a single string
|
equals | public boolean equals(Object obj)(Code) | | Indicates whether some other object is "equal to" this one.
|
getCardinality | public int getCardinality()(Code) | | Get the cardinality component of this SequenceType. This is one of the constants Cardinality.EXACTLY_ONE,
Cardinality.ONE_OR_MORE, etc
the required cardinality See Also: net.sf.saxon.value.Cardinality |
getPrimaryType | public ItemType getPrimaryType()(Code) | | Get the "primary" part of this required type. E.g. for type element(*, xs:date) the "primary type" is element()
The item type code of the primary type |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object.
|
makeSequenceType | public static SequenceType makeSequenceType(ItemType primaryType, int cardinality)(Code) | | Construct an instance of SequenceType. This is a factory method: it maintains a
pool of SequenceType objects to reduce the amount of object creation.
Parameters: primaryType - The item type Parameters: cardinality - The required cardinality |
toString | public String toString()(Code) | | Return a string representation of this SequenceType
the string representation as an instance of the XPathSequenceType construct |
|
|