Package net.sf.saxon.s9api
Class SequenceType
- java.lang.Object
-
- net.sf.saxon.s9api.SequenceType
-
public class SequenceType extends Object
A SequenceType is the combination of an ItemType and an OccurrenceIndicator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Test whether two SequenceType objects represent the same typestatic SequenceTypefromUnderlyingSequenceType(Processor processor, SequenceType st)Factory method to construct a s9apiSequenceTypefrom an underlying instance ofSequenceTypeItemTypegetItemType()Get the item typeOccurrenceIndicatorgetOccurrenceIndicator()Get the occurrence indicatorSequenceTypegetUnderlyingSequenceType()Get the underlying internal SequenceTypeinthashCode()Get a hash code with semantics corresponding to the equals() methodstatic SequenceTypemakeSequenceType(ItemType itemType, OccurrenceIndicator occurrenceIndicator)Factory method to construct a SequenceType
-
-
-
Method Detail
-
makeSequenceType
public static SequenceType makeSequenceType(ItemType itemType, OccurrenceIndicator occurrenceIndicator)
Factory method to construct a SequenceType- Parameters:
itemType- the ItemTypeoccurrenceIndicator- the permitted number of occurrences of the item in the sequence- Returns:
- the constricted SequenceType
-
getItemType
public ItemType getItemType()
Get the item type- Returns:
- the item type
-
getOccurrenceIndicator
public OccurrenceIndicator getOccurrenceIndicator()
Get the occurrence indicator- Returns:
- the occurrence indicator
-
equals
public final boolean equals(Object other)
Test whether two SequenceType objects represent the same type
-
hashCode
public final int hashCode()
Get a hash code with semantics corresponding to the equals() method
-
getUnderlyingSequenceType
public SequenceType getUnderlyingSequenceType()
Get the underlying internal SequenceType- Returns:
- the equivalent instance of
SequenceType
-
fromUnderlyingSequenceType
public static SequenceType fromUnderlyingSequenceType(Processor processor, SequenceType st)
Factory method to construct a s9apiSequenceTypefrom an underlying instance ofSequenceType- Since:
- 10.0
-
-