public final class SequenceType
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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_ATOMIC
A type that allows zero or one atomic values
|
static SequenceType |
OPTIONAL_INTEGER
A type that allows a single integer
|
static SequenceType |
OPTIONAL_NODE
A type that allows zero or one nodes
|
static SequenceType |
SINGLE_ATOMIC
A type that allows exactly one atomic value
|
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_NODE
A type that allows a single node
|
static SequenceType |
SINGLE_STRING
A type that allows a single string
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.lang.String |
toString()
Return a string representation of this SequenceType
|
public static final SequenceType ANY_SEQUENCE
public static final SequenceType SINGLE_ITEM
public static final SequenceType SINGLE_ATOMIC
public static final SequenceType OPTIONAL_ATOMIC
public static final SequenceType ATOMIC_SEQUENCE
public static final SequenceType SINGLE_STRING
public static final SequenceType SINGLE_INTEGER
public static final SequenceType OPTIONAL_INTEGER
public static final SequenceType OPTIONAL_NODE
public static final SequenceType SINGLE_NODE
public static final SequenceType NODE_SEQUENCE
public static final SequenceType NUMERIC_SEQUENCE
public static final SequenceType EMPTY_SEQUENCE
public static SequenceType makeSequenceType(ItemType primaryType, int cardinality)
primaryType
- The item typecardinality
- The required cardinalitypublic ItemType getPrimaryType()
public int getCardinality()
Cardinality
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object