The ZorbaXQSequenceType interface represents a sequence type as XQuery 1.0: An XML Query language. More...
Public Member Functions | |
boolean | equals (Object o) |
Compares the specified object with this sequence type for equality. | |
int | getItemOccurrence () |
Returns the occurrence indicator for the sequence type. | |
XQItemType | getItemType () |
Returns the type of the item in the sequence type. | |
int | hashCode () |
Returns a hash code consistent with the definition of the equals method. | |
String | toString () |
Returns a human-readable implementation-defined string representation of the sequence type. | |
ZorbaXQSequenceType (XQItemType type, int occurence) |
The ZorbaXQSequenceType interface represents a sequence type as XQuery 1.0: An XML Query language.
The ZorbaXQSequenceType is the base interface for the XQItemType interface and contains an occurence indicator.
Definition at line 24 of file ZorbaXQSequenceType.java.
|
inline |
Definition at line 29 of file ZorbaXQSequenceType.java.
Referenced by org.zorbaxquery.api.xqj.ZorbaXQSequenceType.equals().
|
inline |
Compares the specified object with this sequence type for equality.
The result is true only if the argument is a sequence type object which represents the same XQuery sequence type.
In order to comply with the general contract of equals and hashCode across different implementations the following algorithm must be used. Return true if and only if both objects are XQsequenceType and:
o | - an XQItemType object representing an XQuery sequence type |
Definition at line 99 of file ZorbaXQSequenceType.java.
References org.zorbaxquery.api.xqj.ZorbaXQSequenceType.ZorbaXQSequenceType().
|
inline |
Returns the occurrence indicator for the sequence type.
One of:
Description Value Zero or one OCC_ZERO_OR_ONE Exactly one OCC_EXACTLY_ONE Zero or more OCC_ZERO_OR_MORE One or more OCC_ONE_OR_MORE Empty OCC_EMPTY
Definition at line 57 of file ZorbaXQSequenceType.java.
|
inline |
Returns the type of the item in the sequence type.
Definition at line 39 of file ZorbaXQSequenceType.java.
|
inline |
Returns a hash code consistent with the definition of the equals method.
In order to comply with the general contract of equals and hashCode across different implementations the following algorithm must be used:
Definition at line 127 of file ZorbaXQSequenceType.java.
|
inline |
Returns a human-readable implementation-defined string representation of the sequence type.
Definition at line 66 of file ZorbaXQSequenceType.java.