Create a SequenceType
The ItemType (or 'empty' for empty-sequence())
The occurrence indicator (default: EXACTLY_ONE)
Get the ItemType
Get the OccurrenceIndicator
Check if this is empty-sequence()
Check if this type allows zero items
Check if this type allows multiple items
Check if this type requires at least one item
Get a string representation of this SequenceType Examples: "empty-sequence()", "xs:integer", "xs:integer?", "element(*)"
Get the minimum cardinality allowed by this type 0 = allows empty, 1 = requires at least one item
Get the maximum cardinality allowed by this type 1 = exactly one item, Infinity = unbounded
Check if another SequenceType is compatible with this one (i.e., can values of that type be assigned to this type)
This is a simple compatibility check. Full implementation would require schema information and type hierarchy checking.
SequenceType specifies the expected type and cardinality of a sequence
Special cases: