16 package org.zorbaxquery.api.xqj;
18 import javax.xml.xquery.XQItemType;
31 this.occurence = occurence;
67 StringBuffer result =
new StringBuffer();
71 result.append(type.toString());
74 if (field.getName().startsWith(
"OCC_")) {
75 if (field.getInt(
this)==occurence) {
76 result.append(
"Ocurrence: ").append(field.getName().substring(4));
80 }
catch (Exception e){
81 result.append(
"Sequence Type error: ").append(e.getLocalizedMessage());
84 return result.toString();
100 boolean result =
false;
102 result = (occurence != ZorbaXQSequenceType.OCC_EMPTY) &&
103 (type.equals(((ZorbaXQSequenceType)o).getItemType())) &&
132 hashCode = occurence * 31 + type.hashCode();
boolean equals(Object o)
Compares the specified object with this sequence type for equality.
String toString()
Returns a human-readable implementation-defined string representation of the sequence type...
The ZorbaXQSequenceType interface represents a sequence type as XQuery 1.0: An XML Query language...
int hashCode()
Returns a hash code consistent with the definition of the equals method.
int getItemOccurrence()
Returns the occurrence indicator for the sequence type.
XQItemType getItemType()
Returns the type of the item in the sequence type.
ZorbaXQSequenceType(XQItemType type, int occurence)