Saxon.Api

 

 

Saxon.Api

Class XdmSequenceType


public class XdmSequenceType
extends object

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
 char ONE_OR_MORE
 char ZERO
 char ZERO_OR_MORE
 char ZERO_OR_ONE

 

Constructor Summary

XdmSequenceType (XdmItemType itemType, char occurrenceIndicator)

Create an XdmSequenceType corresponding to a given XdmItemType and occurrence indicator

 

Field Detail

ONE

public char ONE

ONE_OR_MORE

public char ONE_OR_MORE

ZERO

public char ZERO

ZERO_OR_MORE

public char ZERO_OR_MORE

ZERO_OR_ONE

public char ZERO_OR_ONE

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 'º' (masculine ordinal indicator, xBA) (exactly zero). The type empty-sequence() can be represented by an occurrence indicator of 'º' with any item type.