Saxon.Api
Class XdmSequenceType
-
public class XdmSequenceType
An instance of class XdmSequenceType
represents a sequence type, that is, the combination
of an item type and an occurrence indicator.
An XdmSequenceType
may be constructed using the method Processor.ParseSequenceType()
Field Summary |
|
---|---|
static XdmSequenceType | AnySequenceType
A |
char | ONE Occurrence indicator denoting a sequence of length exactly one |
char | ONE_OR_MORE Occurrence indicator denoting a sequence of any length other than zero (one or more items) |
char | ZERO Occurrence indicator denoting an empty sequence (zero items) |
char | ZERO_OR_MORE Occurrence indicator denoting a sequence of any length (zero or more items) |
char | ZERO_OR_ONE Occurrence indicator denoting a sequence of length zero or one |
Constructor Summary |
|
---|---|
XdmSequenceType (XdmItemType itemType, char occurrenceIndicator)
Create an |
Property Summary |
|
---|---|
XdmItemType | ItemType The ItemType part of the SequenceType |
char | OccurrenceIndicator The occurrence indicator. One of "?", "*", "+", or " " (single space) meaning exactly 1, or "0" meaning exactly zero. |
Field Detail
AnySequenceType
A SequenceType
that matches any sequence (any kind of item, any length)
ONE_OR_MORE
Occurrence indicator denoting a sequence of any length other than zero (one or more items)
ZERO_OR_MORE
Occurrence indicator denoting a sequence of any length (zero or more items)
Constructor Detail
XdmSequenceType
Create an XdmSequenceType
corresponding to a given XdmItemType
and occurrence indicator
Parameters:
itemType
- The item typeoccurrenceIndicator
- The occurrence indicator, one of '?' (zero-or-one),
'*' (zero-or-more), '+' (one-or-more), ' ' (a single space) (exactly one),
or '0' (exactly zero). The type empty-sequence()
can be represented by an occurrence indicator of 'ยบ' with any item type.Property Detail
OccurrenceIndicator
The occurrence indicator. One of "?", "*", "+", or " " (single space) meaning exactly 1, or "0" meaning exactly zero.