Interface XQItemType
- 
- All Superinterfaces:
- XQSequenceType
 - All Known Implementing Classes:
- SaxonXQItemType
 
 public interface XQItemType extends XQSequenceType TheXQItemTypeinterface represents an item type as defined in XQuery 1.0: An XML Query language.The XQItemTypeextends theXQSequenceTypebut restricts the occurrance indicator to be exactly one. This derivation allows passing an item type wherever a sequence type is expected, but not the other way.The XQItemTypeinterface contains methods to represent information about the following aspects of an item type:- The kind of the item - one of XQITEMKIND_*constants
- The base type of the item - one of the XQBASETYPE_*constants. For atomic types this is the closest matching built-in XML Schema type, for element and attributes the closest matching built-in XML Schema type this node is based on.
- Name of the node, if any
- Type name, if any. If present, then also whether the typename is an anonymous type
- XML Schema URI associated with the type, if any
- The nillability characteristics, if any
 An instance of the XQItemTypeis a standalone object that is independant of theXQConnectionand any XQuery static or dynamic context.
- 
- 
Field SummaryFields Modifier and Type Field Description static intXQBASETYPE_ANYATOMICTYPERepresents the schema typexs:anyAtomicTypestatic intXQBASETYPE_ANYSIMPLETYPERepresents the schema typexs:anySimpleTypestatic intXQBASETYPE_ANYTYPERepresents the schema type xs:anyTypestatic intXQBASETYPE_ANYURIRepresents the schema typexs:anyURIstatic intXQBASETYPE_BASE64BINARYRepresents the schema typexs:base64Binarystatic intXQBASETYPE_BOOLEANRepresents the schema typexs:booleanstatic intXQBASETYPE_BYTERepresents the schema typexs:bytestatic intXQBASETYPE_DATERepresents the schema typexs:datestatic intXQBASETYPE_DATETIMERepresents the schema typexs:dateTimestatic intXQBASETYPE_DAYTIMEDURATIONRepresents the schema typexs:dayTimeDurationstatic intXQBASETYPE_DECIMALRepresents the schema typexs:decimalstatic intXQBASETYPE_DOUBLERepresents the schema typexs:doublestatic intXQBASETYPE_DURATIONRepresents the schema typexs:durationstatic intXQBASETYPE_ENTITIESRepresents the schema typexs:ENTITIESstatic intXQBASETYPE_ENTITYRepresents the schema typexs:ENTITYstatic intXQBASETYPE_FLOATRepresents the schema typexs:floatstatic intXQBASETYPE_GDAYRepresents the schema typexs:gDaystatic intXQBASETYPE_GMONTHRepresents the schema typexs:gMonthstatic intXQBASETYPE_GMONTHDAYRepresents the schema typexs:gMonthDaystatic intXQBASETYPE_GYEARRepresents the schema typexs:gYearstatic intXQBASETYPE_GYEARMONTHRepresents the schema typexs:gYearMonthstatic intXQBASETYPE_HEXBINARYRepresents the schema typexs:hexBinarystatic intXQBASETYPE_IDRepresents the schema typexs:IDstatic intXQBASETYPE_IDREFRepresents the schema typexs:IDREFstatic intXQBASETYPE_IDREFSRepresents the schema typexs:IDREFS.static intXQBASETYPE_INTRepresents the schema typexs:intstatic intXQBASETYPE_INTEGERRepresents the schema typexs:integerstatic intXQBASETYPE_LANGUAGERepresents the schema typexs:languagestatic intXQBASETYPE_LONGRepresents the schema typexs:longstatic intXQBASETYPE_NAMERepresents the schema typexs:Namestatic intXQBASETYPE_NCNAMERepresents the schema typexs:NCNamestatic intXQBASETYPE_NEGATIVE_INTEGERRepresents the schema typexs:negativeIntegerstatic intXQBASETYPE_NMTOKENRepresents the schema typexs:NMTokenstatic intXQBASETYPE_NMTOKENSRepresents the schema typexs:NMTOKENSstatic intXQBASETYPE_NONNEGATIVE_INTEGERRepresents the schema typexs:nonNegativeIntegerstatic intXQBASETYPE_NONPOSITIVE_INTEGERRepresents the schema typexs:nonPositiveIntegerstatic intXQBASETYPE_NORMALIZED_STRINGRepresents the schema typexs:normalizedStringstatic intXQBASETYPE_NOTATIONRepresents the schema typexs:NOTATIONstatic intXQBASETYPE_POSITIVE_INTEGERRepresents the schema typexs:positiveIntegerstatic intXQBASETYPE_QNAMERepresents the schema typexs:QNamestatic intXQBASETYPE_SHORTRepresents the schema typexs:shortstatic intXQBASETYPE_STRINGRepresents the schema typexs:stringstatic intXQBASETYPE_TIMERepresents the schema typexs:timestatic intXQBASETYPE_TOKENRepresents the schema typexs:tokenstatic intXQBASETYPE_UNSIGNED_BYTERepresents the schema typexs:unsignedBytestatic intXQBASETYPE_UNSIGNED_INTRepresents the schema typexs:unsignedIntstatic intXQBASETYPE_UNSIGNED_LONGRepresents the schema typexs:unsignedLongstatic intXQBASETYPE_UNSIGNED_SHORTRepresents the schema typexs:unsignedShortstatic intXQBASETYPE_UNTYPEDRepresents the schema type xs:untypedstatic intXQBASETYPE_UNTYPEDATOMICRepresents the schema typexs:untypedAtomicstatic intXQBASETYPE_YEARMONTHDURATIONRepresents the schema typexs:yearMonthDurationstatic intXQITEMKIND_ATOMICSome atomic type.static intXQITEMKIND_ATTRIBUTEAttribute nodestatic intXQITEMKIND_COMMENTComment nodestatic intXQITEMKIND_DOCUMENTDocument type (the type information represents the type of the document element)static intXQITEMKIND_DOCUMENT_ELEMENTDocument node containing a single element node as its child (type information represents type of the element child)static intXQITEMKIND_DOCUMENT_SCHEMA_ELEMENTDocument node containing a single schema element node as its child (type information represents type of the schema element child)static intXQITEMKIND_ELEMENTElement nodestatic intXQITEMKIND_ITEMAny kind of itemstatic intXQITEMKIND_NODESome node typestatic intXQITEMKIND_PIProcessing instruction nodestatic intXQITEMKIND_SCHEMA_ATTRIBUTESchema attribute nodestatic intXQITEMKIND_SCHEMA_ELEMENTSchema element nodestatic intXQITEMKIND_TEXTText node- 
Fields inherited from interface javax.xml.xquery.XQSequenceTypeOCC_EMPTY, OCC_EXACTLY_ONE, OCC_ONE_OR_MORE, OCC_ZERO_OR_MORE, OCC_ZERO_OR_ONE
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Compares the specified object with this item type for equality.intgetBaseType()Returns the base type of the item.intgetItemKind()Returns the kind of the item.intgetItemOccurrence()Returns the occurrence indicator for the item type.javax.xml.namespace.QNamegetNodeName()Returns the name of the node in case the item kind is anXQITEMKIND_DOCUMENT_ELEMENT,XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT,XQITEMKIND_ELEMENT,XQITEMKIND_SCHEMA_ELEMENT,XQITEMKIND_ATTRIBUTE, orXQITEMKIND_SCHEMA_ATTRIBUTE.java.lang.StringgetPIName()Returns the name of the processing instruction type.java.net.URIgetSchemaURI()Returns the schema location URI of the schema that contains the item's element or type definition.javax.xml.namespace.QNamegetTypeName()Represents a type name (global or local).inthashCode()Returns a hash code consistent with the definition of the equals method.booleanisAnonymousType()Represents whether the item type is an anonymous type in the schema.booleanisElementNillable()Returns whether the element type is nillable or not.java.lang.StringtoString()Returns a human-readable implementation-defined string representation of the item type.- 
Methods inherited from interface javax.xml.xquery.XQSequenceTypegetItemType
 
- 
 
- 
- 
- 
Field Detail- 
XQITEMKIND_ATOMICstatic final int XQITEMKIND_ATOMIC Some atomic type.- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_ATTRIBUTEstatic final int XQITEMKIND_ATTRIBUTE Attribute node- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_COMMENTstatic final int XQITEMKIND_COMMENT Comment node- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_DOCUMENTstatic final int XQITEMKIND_DOCUMENT Document type (the type information represents the type of the document element)- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_DOCUMENT_ELEMENTstatic final int XQITEMKIND_DOCUMENT_ELEMENT Document node containing a single element node as its child (type information represents type of the element child)- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_DOCUMENT_SCHEMA_ELEMENTstatic final int XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT Document node containing a single schema element node as its child (type information represents type of the schema element child)- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_ELEMENTstatic final int XQITEMKIND_ELEMENT Element node- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_ITEMstatic final int XQITEMKIND_ITEM Any kind of item- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_NODEstatic final int XQITEMKIND_NODE Some node type- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_PIstatic final int XQITEMKIND_PI Processing instruction node- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_TEXTstatic final int XQITEMKIND_TEXT Text node- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_SCHEMA_ELEMENTstatic final int XQITEMKIND_SCHEMA_ELEMENT Schema element node- See Also:
- Constant Field Values
 
 - 
XQITEMKIND_SCHEMA_ATTRIBUTEstatic final int XQITEMKIND_SCHEMA_ATTRIBUTE Schema attribute node- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_UNTYPEDstatic final int XQBASETYPE_UNTYPED Represents the schema type xs:untyped- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_ANYTYPEstatic final int XQBASETYPE_ANYTYPE Represents the schema type xs:anyType- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_ANYSIMPLETYPEstatic final int XQBASETYPE_ANYSIMPLETYPE Represents the schema typexs:anySimpleType- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_ANYATOMICTYPEstatic final int XQBASETYPE_ANYATOMICTYPE Represents the schema typexs:anyAtomicType- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_UNTYPEDATOMICstatic final int XQBASETYPE_UNTYPEDATOMIC Represents the schema typexs:untypedAtomic- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_DAYTIMEDURATIONstatic final int XQBASETYPE_DAYTIMEDURATION Represents the schema typexs:dayTimeDuration- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_YEARMONTHDURATIONstatic final int XQBASETYPE_YEARMONTHDURATION Represents the schema typexs:yearMonthDuration- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_ANYURIstatic final int XQBASETYPE_ANYURI Represents the schema typexs:anyURI- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_BASE64BINARYstatic final int XQBASETYPE_BASE64BINARY Represents the schema typexs:base64Binary- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_BOOLEANstatic final int XQBASETYPE_BOOLEAN Represents the schema typexs:boolean- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_DATEstatic final int XQBASETYPE_DATE Represents the schema typexs:date- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_INTstatic final int XQBASETYPE_INT Represents the schema typexs:int- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_INTEGERstatic final int XQBASETYPE_INTEGER Represents the schema typexs:integer- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_SHORTstatic final int XQBASETYPE_SHORT Represents the schema typexs:short- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_LONGstatic final int XQBASETYPE_LONG Represents the schema typexs:long- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_DATETIMEstatic final int XQBASETYPE_DATETIME Represents the schema typexs:dateTime- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_DECIMALstatic final int XQBASETYPE_DECIMAL Represents the schema typexs:decimal- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_DOUBLEstatic final int XQBASETYPE_DOUBLE Represents the schema typexs:double- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_DURATIONstatic final int XQBASETYPE_DURATION Represents the schema typexs:duration- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_FLOATstatic final int XQBASETYPE_FLOAT Represents the schema typexs:float- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_GDAYstatic final int XQBASETYPE_GDAY Represents the schema typexs:gDay- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_GMONTHstatic final int XQBASETYPE_GMONTH Represents the schema typexs:gMonth- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_GMONTHDAYstatic final int XQBASETYPE_GMONTHDAY Represents the schema typexs:gMonthDay- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_GYEARstatic final int XQBASETYPE_GYEAR Represents the schema typexs:gYear- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_GYEARMONTHstatic final int XQBASETYPE_GYEARMONTH Represents the schema typexs:gYearMonth- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_HEXBINARYstatic final int XQBASETYPE_HEXBINARY Represents the schema typexs:hexBinary- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NOTATIONstatic final int XQBASETYPE_NOTATION Represents the schema typexs:NOTATION- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_QNAMEstatic final int XQBASETYPE_QNAME Represents the schema typexs:QName- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_STRINGstatic final int XQBASETYPE_STRING Represents the schema typexs:string- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_TIMEstatic final int XQBASETYPE_TIME Represents the schema typexs:time- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_BYTEstatic final int XQBASETYPE_BYTE Represents the schema typexs:byte- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NONPOSITIVE_INTEGERstatic final int XQBASETYPE_NONPOSITIVE_INTEGER Represents the schema typexs:nonPositiveInteger- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NONNEGATIVE_INTEGERstatic final int XQBASETYPE_NONNEGATIVE_INTEGER Represents the schema typexs:nonNegativeInteger- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NEGATIVE_INTEGERstatic final int XQBASETYPE_NEGATIVE_INTEGER Represents the schema typexs:negativeInteger- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_POSITIVE_INTEGERstatic final int XQBASETYPE_POSITIVE_INTEGER Represents the schema typexs:positiveInteger- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_UNSIGNED_LONGstatic final int XQBASETYPE_UNSIGNED_LONG Represents the schema typexs:unsignedLong- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_UNSIGNED_INTstatic final int XQBASETYPE_UNSIGNED_INT Represents the schema typexs:unsignedInt- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_UNSIGNED_SHORTstatic final int XQBASETYPE_UNSIGNED_SHORT Represents the schema typexs:unsignedShort- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_UNSIGNED_BYTEstatic final int XQBASETYPE_UNSIGNED_BYTE Represents the schema typexs:unsignedByte- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NORMALIZED_STRINGstatic final int XQBASETYPE_NORMALIZED_STRING Represents the schema typexs:normalizedString- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_TOKENstatic final int XQBASETYPE_TOKEN Represents the schema typexs:token- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_LANGUAGEstatic final int XQBASETYPE_LANGUAGE Represents the schema typexs:language- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NAMEstatic final int XQBASETYPE_NAME Represents the schema typexs:Name- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NCNAMEstatic final int XQBASETYPE_NCNAME Represents the schema typexs:NCName- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NMTOKENstatic final int XQBASETYPE_NMTOKEN Represents the schema typexs:NMToken- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_IDstatic final int XQBASETYPE_ID Represents the schema typexs:ID- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_IDREFstatic final int XQBASETYPE_IDREF Represents the schema typexs:IDREF- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_ENTITYstatic final int XQBASETYPE_ENTITY Represents the schema typexs:ENTITY- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_IDREFSstatic final int XQBASETYPE_IDREFS Represents the schema typexs:IDREFS. Valid only if the item kind isXQITEMKIND_ELEMENT,XQITEMKIND_DOCUMENT_ELEMENT, orXQITEMKIND_ATTRIBUTE- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_ENTITIESstatic final int XQBASETYPE_ENTITIES Represents the schema typexs:ENTITIES- See Also:
- Constant Field Values
 
 - 
XQBASETYPE_NMTOKENSstatic final int XQBASETYPE_NMTOKENS Represents the schema typexs:NMTOKENS- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getBaseTypeint getBaseType() throws XQExceptionReturns the base type of the item. One of theXQBASETYPE_*constants.XQJ defines a constant for each of the built-in schema types defined in XML Schema. For atomic types this is the closest matching built-in XML Schema type, for element and attributes the closest matching built-in XML Schema type this node is based on. - Returns:
- int      one of the XQBASETYPE_*constants indicating the basic type of the item
- Throws:
- XQException- if the item kind is not one of:- XQITEMKIND_DOCUMENT_ELEMENT,- XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT,- XQITEMKIND_ELEMENT,- XQITEMKIND_SCHEMA_ELEMENT,- XQITEMKIND_ATTRIBUTE,- XQITEMKIND_SCHEMA_ATTRIBUTE, or- XQITEMKIND_ATOMIC
 
 - 
getItemKindint getItemKind() Returns the kind of the item. One of theXQITEMKIND_*constants.- Returns:
- int      one of the XQITEMKIND_*constants indicating the basic kind of the item
 
 - 
getItemOccurrenceint getItemOccurrence() Returns the occurrence indicator for the item type. This method will always return the valueXQSequenceType.OCC_EXACTLY_ONE.- Specified by:
- getItemOccurrencein interface- XQSequenceType
- Returns:
- int indicating the occurrence indicator
 
 - 
toStringjava.lang.String toString() Returns a human-readable implementation-defined string representation of the item type.- Specified by:
- toStringin interface- XQSequenceType
- Overrides:
- toStringin class- java.lang.Object
- Returns:
- String a string representation of the item type
 
 - 
getNodeNamejavax.xml.namespace.QName getNodeName() throws XQExceptionReturns the name of the node in case the item kind is anXQITEMKIND_DOCUMENT_ELEMENT,XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT,XQITEMKIND_ELEMENT,XQITEMKIND_SCHEMA_ELEMENT,XQITEMKIND_ATTRIBUTE, orXQITEMKIND_SCHEMA_ATTRIBUTE.For example, in the case of a type for element "foo"this will return theQName foo. For wildcard entries anullvalue will be returned.- Returns:
- QNamefor the name of the element, attribute, or document element node.- nullif it is a wildcard
- Throws:
- XQException- if the item kind is not one of:- XQITEMKIND_DOCUMENT_ELEMENT,- XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT,- XQITEMKIND_ELEMENT,- XQITEMKIND_SCHEMA_ELEMENT,- XQITEMKIND_ATTRIBUTE, or- XQITEMKIND_SCHEMA_ATTRIBUTE
 
 - 
getSchemaURIjava.net.URI getSchemaURI() Returns the schema location URI of the schema that contains the item's element or type definition. This method is implementation-definied and an implementation will return anullvalue if it does not support retrieving the schema location URI.If the item corresponds to a validated global element in a schema, the result will be the schema location URI to the XMLSchema containing the element definition. Otherwise if the item is a schema validated node, the result will be the schema location URI of the XMLSchema containing the type definition of that node. If the item is not schema validated, the result is null- Returns:
- URIrepresenting the schema location URI of the XMLSchema containing the global element definition or the type definition of the current item.- nullin case the item is not schema validated or if the implementation does not support retrieving the schema URI.
 
 - 
getTypeNamejavax.xml.namespace.QName getTypeName() throws XQExceptionRepresents a type name (global or local). This can be used to represent specific type name such as, element foo of type hatsize. The schema type name is represented as a singleQName. If the return type is an anonymous type, the actualQNamevalue returned is implementation defined.- Returns:
- the QNameof the schema type in case of a user defined or anonoymous types. For a built-in type, returns a predefined type name as QName (e.g.xs:anyType,xs:decimal, etc). Cannot benull
- Throws:
- XQException- if the item kind is not one of:- XQITEMKIND_DOCUMENT_ELEMENT,- XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT,- XQITEMKIND_ATOMIC,- XQITEMKIND_ELEMENT,- XQITEMKIND_SCHEMA_ELEMENT,- XQITEMKIND_ATTRIBUTE, or- XQITEMKIND_SCHEMA_ATTRIBUTE
 
 - 
isAnonymousTypeboolean isAnonymousType() Represents whether the item type is an anonymous type in the schema.- Returns:
- trueif the item type is an anonymous type in the schema,- falseotherwise
 
 - 
isElementNillableboolean isElementNillable() Returns whether the element type is nillable or not.- Returns:
- trueif the element type is nillable,- falseotherwise
 
 - 
getPINamejava.lang.String getPIName() throws XQExceptionReturns the name of the processing instruction type. As such the item kind of thisXQItemTypemust beXQITEMKIND_PI.- Returns:
- the name of the processing instruction type.
         nullif it is a wildcard
- Throws:
- XQException- if the item kind is not- XQITEMKIND_PI
 
 - 
equalsboolean equals(java.lang.Object o) Compares the specified object with this item type for equality. The result istrueonly if the argument is an item type object which represents the same XQuery item type.In order to comply with the general contract of equalsandhashCodeacross different implementations the following algorithm must be used. Returntrueif and only if both objects areXQItemTypeand:- getItemKind()is equal
- if getBaseType()is supported for the item kind, it must be equal
- if getNodeName()is supported for the item kind, it must be equal
- getSchemaURI()is equal
- if getTypeName()is supported for the item kind, it must be equal
- isAnonymousType()is equal
- isElementNillable()is equal
- if getPIName()is supported for the item kind, it must be equal
 - Specified by:
- equalsin interface- XQSequenceType
- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- o- an- XQItemTypeobject representing an XQuery item type
- Returns:
- trueif the input item type object represents the same XQuery item type,- falseotherwise
 
 - 
hashCodeint hashCode() Returns a hash code consistent with the definition of the equals method.In order to comply with the general contract of equalsandhashCodeacross different implementations the following algorithm must be used:hashCode = this.getItemKind(); if this.getSchemaURI != null hashCode = 31*hashCode + this.getSchemaURI().hashCode(); if this.getBaseType() is supported for the item kind hashCode = 31*hashCode + this.getbaseType(); if this.getNodeName () is supported for the item kind and this.getNodeName() != null hashCode = 31*hashCode + this.getNodeName().hashCode() if this.getTypeName () is supported for the item kind hashCode = 31*hashCode + this.getTypeName().hashCode(); if this.getPIName () is supported for the item kind and this.getPIName () != null hashCode = 31*hashCode + this.getPIName().hashCode();- Specified by:
- hashCodein interface- XQSequenceType
- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- hash code for this item type
 
 
- 
 
-