Saxon.Api

 

 

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.

Field Summary

 char ONE

Occurrence indicator representing zero or more occurrences (space character, " ")

 char ONE_OR_MORE

Occurrence indicator representing one or more occurrences ("+")

 char ZERO

Occurrence indicator representing exactly zero occurrences ("0")

 char ZERO_OR_MORE

Occurrence indicator representing zero or more occurrences ("*")

 char ZERO_OR_ONE

Occurrence indicator representing zero or one occurrences ("?")

 

Constructor Summary

XdmSequenceType (XdmItemType itemType, char occurrenceIndicator)

Create an XdmSequenceType corresponding to a given XdmItemType and occurrence indicator

 

Field Detail

ONE

public char ONE

Occurrence indicator representing zero or more occurrences (space character, " ")

ONE_OR_MORE

public char ONE_OR_MORE

Occurrence indicator representing one or more occurrences ("+")

ZERO

public char ZERO

Occurrence indicator representing exactly zero occurrences ("0")

ZERO_OR_MORE

public char ZERO_OR_MORE

Occurrence indicator representing zero or more occurrences ("*")

ZERO_OR_ONE

public char ZERO_OR_ONE

Occurrence indicator representing zero or one occurrences ("?")

Constructor Detail

XdmSequenceType

public XdmSequenceType(XdmItemType itemType,
                       char occurrenceIndicator)

Create an XdmSequenceType corresponding to a given XdmItemType and occurrence indicator

Parameters:

itemType - The item type
occurrenceIndicator - 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.