net.sf.saxon.value
public final class SequenceType extends Object implements Serializable
Field Summary | |
---|---|
static SequenceType | ANY_SEQUENCE
A type that allows any sequence of items |
static SequenceType | ATOMIC_SEQUENCE
A type that allows zero or more atomic values |
static SequenceType | EMPTY_SEQUENCE
A type that only permits the empty sequence |
static SequenceType | NODE_SEQUENCE
A type that allows a sequence of zero or more nodes |
static SequenceType | NUMERIC_SEQUENCE
A type that allows a sequence of zero or more numeric values |
static SequenceType | OPTIONAL_ANY_URI
A type that allows a single optional anyURI |
static SequenceType | OPTIONAL_ATOMIC
A type that allows zero or one atomic values |
static SequenceType | OPTIONAL_BOOLEAN
A type that allows a single optional integer |
static SequenceType | OPTIONAL_BYTE
A type that allows a single optional byte |
static SequenceType | OPTIONAL_DATE_TIME
A type that allows a single optional dateTime |
static SequenceType | OPTIONAL_DECIMAL
A type that allows a single optional decimal |
static SequenceType | OPTIONAL_DOCUMENT_NODE
A type that allows a single document node |
static SequenceType | OPTIONAL_DOUBLE
A type that allows a single optional double |
static SequenceType | OPTIONAL_FLOAT
A type that allows a single optional float |
static SequenceType | OPTIONAL_INT
A type that allows a single optional int |
static SequenceType | OPTIONAL_INTEGER
A type that allows a single optional integer |
static SequenceType | OPTIONAL_ITEM
A type that allows zero or one items, of any kind |
static SequenceType | OPTIONAL_LONG
A type that allows a single optional long |
static SequenceType | OPTIONAL_NODE
A type that allows zero or one nodes |
static SequenceType | OPTIONAL_NUMERIC
A type that allows an optional numeric value |
static SequenceType | OPTIONAL_QNAME
A type that allows a single optional xs:QName |
static SequenceType | OPTIONAL_SHORT
A type that allows a single optional short |
static SequenceType | OPTIONAL_STRING
A type that allows a single optional string |
static SequenceType | SINGLE_ATOMIC
A type that allows exactly one atomic value |
static SequenceType | SINGLE_BOOLEAN
A type that allows a single boolean |
static SequenceType | SINGLE_BYTE
A type that allows a single short |
static SequenceType | SINGLE_DOUBLE
A type that allows a single double |
static SequenceType | SINGLE_ELEMENT_NODE
A type that allows a single element node |
static SequenceType | SINGLE_FLOAT
A type that allows a single float |
static SequenceType | SINGLE_INT
A type that allows a single int |
static SequenceType | SINGLE_INTEGER
A type that allows a single integer |
static SequenceType | SINGLE_ITEM
A type that allows exactly one item, of any kind |
static SequenceType | SINGLE_LONG
A type that allows a single long |
static SequenceType | SINGLE_NODE
A type that allows a single node |
static SequenceType | SINGLE_SHORT
A type that allows a single short |
static SequenceType | SINGLE_STRING
A type that allows a single string |
static SequenceType | SINGLE_UNTYPED_ATOMIC
A type that allows a single untyped atomic |
Method Summary | |
---|---|
boolean | equals(Object obj)
Indicates whether some other object is "equal to" this one. |
int | getCardinality()
Get the cardinality component of this SequenceType. |
ItemType | getPrimaryType()
Get the "primary" part of this required type. |
int | hashCode()
Returns a hash code value for the object. |
static SequenceType | makeSequenceType(ItemType primaryType, int cardinality)
Construct an instance of SequenceType. |
boolean | matches(Value value, Configuration config)
Determine whether a given value is a valid instance of this SequenceType |
String | toString()
Return a string representation of this SequenceType |
Returns: the required cardinality
See Also: Cardinality
Returns: The item type code of the primary type
Parameters: primaryType The item type cardinality The required cardinality
Parameters: value the value to be tested
Returns: true if the value is a valid instance of this type
Returns: the string representation as an instance of the XPath SequenceType construct