Interface XQItemType
-
- All Superinterfaces:
XQSequenceType
- All Known Implementing Classes:
SaxonXQItemType
public interface XQItemType extends XQSequenceType
TheXQItemType
interface represents an item type as defined in XQuery 1.0: An XML Query language.The
XQItemType
extends theXQSequenceType
but 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
XQItemType
interface 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
XQItemType
is a standalone object that is independant of theXQConnection
and any XQuery static or dynamic context.
-
-
Field Summary
Fields Modifier and Type Field Description static int
XQBASETYPE_ANYATOMICTYPE
Represents the schema typexs:anyAtomicType
static int
XQBASETYPE_ANYSIMPLETYPE
Represents the schema typexs:anySimpleType
static int
XQBASETYPE_ANYTYPE
Represents the schema type xs:anyTypestatic int
XQBASETYPE_ANYURI
Represents the schema typexs:anyURI
static int
XQBASETYPE_BASE64BINARY
Represents the schema typexs:base64Binary
static int
XQBASETYPE_BOOLEAN
Represents the schema typexs:boolean
static int
XQBASETYPE_BYTE
Represents the schema typexs:byte
static int
XQBASETYPE_DATE
Represents the schema typexs:date
static int
XQBASETYPE_DATETIME
Represents the schema typexs:dateTime
static int
XQBASETYPE_DAYTIMEDURATION
Represents the schema typexs:dayTimeDuration
static int
XQBASETYPE_DECIMAL
Represents the schema typexs:decimal
static int
XQBASETYPE_DOUBLE
Represents the schema typexs:double
static int
XQBASETYPE_DURATION
Represents the schema typexs:duration
static int
XQBASETYPE_ENTITIES
Represents the schema typexs:ENTITIES
static int
XQBASETYPE_ENTITY
Represents the schema typexs:ENTITY
static int
XQBASETYPE_FLOAT
Represents the schema typexs:float
static int
XQBASETYPE_GDAY
Represents the schema typexs:gDay
static int
XQBASETYPE_GMONTH
Represents the schema typexs:gMonth
static int
XQBASETYPE_GMONTHDAY
Represents the schema typexs:gMonthDay
static int
XQBASETYPE_GYEAR
Represents the schema typexs:gYear
static int
XQBASETYPE_GYEARMONTH
Represents the schema typexs:gYearMonth
static int
XQBASETYPE_HEXBINARY
Represents the schema typexs:hexBinary
static int
XQBASETYPE_ID
Represents the schema typexs:ID
static int
XQBASETYPE_IDREF
Represents the schema typexs:IDREF
static int
XQBASETYPE_IDREFS
Represents the schema typexs:IDREFS
.static int
XQBASETYPE_INT
Represents the schema typexs:int
static int
XQBASETYPE_INTEGER
Represents the schema typexs:integer
static int
XQBASETYPE_LANGUAGE
Represents the schema typexs:language
static int
XQBASETYPE_LONG
Represents the schema typexs:long
static int
XQBASETYPE_NAME
Represents the schema typexs:Name
static int
XQBASETYPE_NCNAME
Represents the schema typexs:NCName
static int
XQBASETYPE_NEGATIVE_INTEGER
Represents the schema typexs:negativeInteger
static int
XQBASETYPE_NMTOKEN
Represents the schema typexs:NMToken
static int
XQBASETYPE_NMTOKENS
Represents the schema typexs:NMTOKENS
static int
XQBASETYPE_NONNEGATIVE_INTEGER
Represents the schema typexs:nonNegativeInteger
static int
XQBASETYPE_NONPOSITIVE_INTEGER
Represents the schema typexs:nonPositiveInteger
static int
XQBASETYPE_NORMALIZED_STRING
Represents the schema typexs:normalizedString
static int
XQBASETYPE_NOTATION
Represents the schema typexs:NOTATION
static int
XQBASETYPE_POSITIVE_INTEGER
Represents the schema typexs:positiveInteger
static int
XQBASETYPE_QNAME
Represents the schema typexs:QName
static int
XQBASETYPE_SHORT
Represents the schema typexs:short
static int
XQBASETYPE_STRING
Represents the schema typexs:string
static int
XQBASETYPE_TIME
Represents the schema typexs:time
static int
XQBASETYPE_TOKEN
Represents the schema typexs:token
static int
XQBASETYPE_UNSIGNED_BYTE
Represents the schema typexs:unsignedByte
static int
XQBASETYPE_UNSIGNED_INT
Represents the schema typexs:unsignedInt
static int
XQBASETYPE_UNSIGNED_LONG
Represents the schema typexs:unsignedLong
static int
XQBASETYPE_UNSIGNED_SHORT
Represents the schema typexs:unsignedShort
static int
XQBASETYPE_UNTYPED
Represents the schema type xs:untypedstatic int
XQBASETYPE_UNTYPEDATOMIC
Represents the schema typexs:untypedAtomic
static int
XQBASETYPE_YEARMONTHDURATION
Represents the schema typexs:yearMonthDuration
static int
XQITEMKIND_ATOMIC
Some atomic type.static int
XQITEMKIND_ATTRIBUTE
Attribute nodestatic int
XQITEMKIND_COMMENT
Comment nodestatic int
XQITEMKIND_DOCUMENT
Document type (the type information represents the type of the document element)static int
XQITEMKIND_DOCUMENT_ELEMENT
Document node containing a single element node as its child (type information represents type of the element child)static 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)static int
XQITEMKIND_ELEMENT
Element nodestatic int
XQITEMKIND_ITEM
Any kind of itemstatic int
XQITEMKIND_NODE
Some node typestatic int
XQITEMKIND_PI
Processing instruction nodestatic int
XQITEMKIND_SCHEMA_ATTRIBUTE
Schema attribute nodestatic int
XQITEMKIND_SCHEMA_ELEMENT
Schema element nodestatic int
XQITEMKIND_TEXT
Text node-
Fields inherited from interface javax.xml.xquery.XQSequenceType
OCC_EMPTY, OCC_EXACTLY_ONE, OCC_ONE_OR_MORE, OCC_ZERO_OR_MORE, OCC_ZERO_OR_ONE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Compares the specified object with this item type for equality.int
getBaseType()
Returns the base type of the item.int
getItemKind()
Returns the kind of the item.int
getItemOccurrence()
Returns the occurrence indicator for the item type.javax.xml.namespace.QName
getNodeName()
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.String
getPIName()
Returns the name of the processing instruction type.java.net.URI
getSchemaURI()
Returns the schema location URI of the schema that contains the item's element or type definition.javax.xml.namespace.QName
getTypeName()
Represents a type name (global or local).int
hashCode()
Returns a hash code consistent with the definition of the equals method.boolean
isAnonymousType()
Represents whether the item type is an anonymous type in the schema.boolean
isElementNillable()
Returns whether the element type is nillable or not.java.lang.String
toString()
Returns a human-readable implementation-defined string representation of the item type.-
Methods inherited from interface javax.xml.xquery.XQSequenceType
getItemType
-
-
-
-
Field Detail
-
XQITEMKIND_ATOMIC
static final int XQITEMKIND_ATOMIC
Some atomic type.- See Also:
- Constant Field Values
-
XQITEMKIND_ATTRIBUTE
static final int XQITEMKIND_ATTRIBUTE
Attribute node- See Also:
- Constant Field Values
-
XQITEMKIND_COMMENT
static final int XQITEMKIND_COMMENT
Comment node- See Also:
- Constant Field Values
-
XQITEMKIND_DOCUMENT
static final int XQITEMKIND_DOCUMENT
Document type (the type information represents the type of the document element)- See Also:
- Constant Field Values
-
XQITEMKIND_DOCUMENT_ELEMENT
static 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_ELEMENT
static 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_ELEMENT
static final int XQITEMKIND_ELEMENT
Element node- See Also:
- Constant Field Values
-
XQITEMKIND_ITEM
static final int XQITEMKIND_ITEM
Any kind of item- See Also:
- Constant Field Values
-
XQITEMKIND_NODE
static final int XQITEMKIND_NODE
Some node type- See Also:
- Constant Field Values
-
XQITEMKIND_PI
static final int XQITEMKIND_PI
Processing instruction node- See Also:
- Constant Field Values
-
XQITEMKIND_TEXT
static final int XQITEMKIND_TEXT
Text node- See Also:
- Constant Field Values
-
XQITEMKIND_SCHEMA_ELEMENT
static final int XQITEMKIND_SCHEMA_ELEMENT
Schema element node- See Also:
- Constant Field Values
-
XQITEMKIND_SCHEMA_ATTRIBUTE
static final int XQITEMKIND_SCHEMA_ATTRIBUTE
Schema attribute node- See Also:
- Constant Field Values
-
XQBASETYPE_UNTYPED
static final int XQBASETYPE_UNTYPED
Represents the schema type xs:untyped- See Also:
- Constant Field Values
-
XQBASETYPE_ANYTYPE
static final int XQBASETYPE_ANYTYPE
Represents the schema type xs:anyType- See Also:
- Constant Field Values
-
XQBASETYPE_ANYSIMPLETYPE
static final int XQBASETYPE_ANYSIMPLETYPE
Represents the schema typexs:anySimpleType
- See Also:
- Constant Field Values
-
XQBASETYPE_ANYATOMICTYPE
static final int XQBASETYPE_ANYATOMICTYPE
Represents the schema typexs:anyAtomicType
- See Also:
- Constant Field Values
-
XQBASETYPE_UNTYPEDATOMIC
static final int XQBASETYPE_UNTYPEDATOMIC
Represents the schema typexs:untypedAtomic
- See Also:
- Constant Field Values
-
XQBASETYPE_DAYTIMEDURATION
static final int XQBASETYPE_DAYTIMEDURATION
Represents the schema typexs:dayTimeDuration
- See Also:
- Constant Field Values
-
XQBASETYPE_YEARMONTHDURATION
static final int XQBASETYPE_YEARMONTHDURATION
Represents the schema typexs:yearMonthDuration
- See Also:
- Constant Field Values
-
XQBASETYPE_ANYURI
static final int XQBASETYPE_ANYURI
Represents the schema typexs:anyURI
- See Also:
- Constant Field Values
-
XQBASETYPE_BASE64BINARY
static final int XQBASETYPE_BASE64BINARY
Represents the schema typexs:base64Binary
- See Also:
- Constant Field Values
-
XQBASETYPE_BOOLEAN
static final int XQBASETYPE_BOOLEAN
Represents the schema typexs:boolean
- See Also:
- Constant Field Values
-
XQBASETYPE_DATE
static final int XQBASETYPE_DATE
Represents the schema typexs:date
- See Also:
- Constant Field Values
-
XQBASETYPE_INT
static final int XQBASETYPE_INT
Represents the schema typexs:int
- See Also:
- Constant Field Values
-
XQBASETYPE_INTEGER
static final int XQBASETYPE_INTEGER
Represents the schema typexs:integer
- See Also:
- Constant Field Values
-
XQBASETYPE_SHORT
static final int XQBASETYPE_SHORT
Represents the schema typexs:short
- See Also:
- Constant Field Values
-
XQBASETYPE_LONG
static final int XQBASETYPE_LONG
Represents the schema typexs:long
- See Also:
- Constant Field Values
-
XQBASETYPE_DATETIME
static final int XQBASETYPE_DATETIME
Represents the schema typexs:dateTime
- See Also:
- Constant Field Values
-
XQBASETYPE_DECIMAL
static final int XQBASETYPE_DECIMAL
Represents the schema typexs:decimal
- See Also:
- Constant Field Values
-
XQBASETYPE_DOUBLE
static final int XQBASETYPE_DOUBLE
Represents the schema typexs:double
- See Also:
- Constant Field Values
-
XQBASETYPE_DURATION
static final int XQBASETYPE_DURATION
Represents the schema typexs:duration
- See Also:
- Constant Field Values
-
XQBASETYPE_FLOAT
static final int XQBASETYPE_FLOAT
Represents the schema typexs:float
- See Also:
- Constant Field Values
-
XQBASETYPE_GDAY
static final int XQBASETYPE_GDAY
Represents the schema typexs:gDay
- See Also:
- Constant Field Values
-
XQBASETYPE_GMONTH
static final int XQBASETYPE_GMONTH
Represents the schema typexs:gMonth
- See Also:
- Constant Field Values
-
XQBASETYPE_GMONTHDAY
static final int XQBASETYPE_GMONTHDAY
Represents the schema typexs:gMonthDay
- See Also:
- Constant Field Values
-
XQBASETYPE_GYEAR
static final int XQBASETYPE_GYEAR
Represents the schema typexs:gYear
- See Also:
- Constant Field Values
-
XQBASETYPE_GYEARMONTH
static final int XQBASETYPE_GYEARMONTH
Represents the schema typexs:gYearMonth
- See Also:
- Constant Field Values
-
XQBASETYPE_HEXBINARY
static final int XQBASETYPE_HEXBINARY
Represents the schema typexs:hexBinary
- See Also:
- Constant Field Values
-
XQBASETYPE_NOTATION
static final int XQBASETYPE_NOTATION
Represents the schema typexs:NOTATION
- See Also:
- Constant Field Values
-
XQBASETYPE_QNAME
static final int XQBASETYPE_QNAME
Represents the schema typexs:QName
- See Also:
- Constant Field Values
-
XQBASETYPE_STRING
static final int XQBASETYPE_STRING
Represents the schema typexs:string
- See Also:
- Constant Field Values
-
XQBASETYPE_TIME
static final int XQBASETYPE_TIME
Represents the schema typexs:time
- See Also:
- Constant Field Values
-
XQBASETYPE_BYTE
static final int XQBASETYPE_BYTE
Represents the schema typexs:byte
- See Also:
- Constant Field Values
-
XQBASETYPE_NONPOSITIVE_INTEGER
static final int XQBASETYPE_NONPOSITIVE_INTEGER
Represents the schema typexs:nonPositiveInteger
- See Also:
- Constant Field Values
-
XQBASETYPE_NONNEGATIVE_INTEGER
static final int XQBASETYPE_NONNEGATIVE_INTEGER
Represents the schema typexs:nonNegativeInteger
- See Also:
- Constant Field Values
-
XQBASETYPE_NEGATIVE_INTEGER
static final int XQBASETYPE_NEGATIVE_INTEGER
Represents the schema typexs:negativeInteger
- See Also:
- Constant Field Values
-
XQBASETYPE_POSITIVE_INTEGER
static final int XQBASETYPE_POSITIVE_INTEGER
Represents the schema typexs:positiveInteger
- See Also:
- Constant Field Values
-
XQBASETYPE_UNSIGNED_LONG
static final int XQBASETYPE_UNSIGNED_LONG
Represents the schema typexs:unsignedLong
- See Also:
- Constant Field Values
-
XQBASETYPE_UNSIGNED_INT
static final int XQBASETYPE_UNSIGNED_INT
Represents the schema typexs:unsignedInt
- See Also:
- Constant Field Values
-
XQBASETYPE_UNSIGNED_SHORT
static final int XQBASETYPE_UNSIGNED_SHORT
Represents the schema typexs:unsignedShort
- See Also:
- Constant Field Values
-
XQBASETYPE_UNSIGNED_BYTE
static final int XQBASETYPE_UNSIGNED_BYTE
Represents the schema typexs:unsignedByte
- See Also:
- Constant Field Values
-
XQBASETYPE_NORMALIZED_STRING
static final int XQBASETYPE_NORMALIZED_STRING
Represents the schema typexs:normalizedString
- See Also:
- Constant Field Values
-
XQBASETYPE_TOKEN
static final int XQBASETYPE_TOKEN
Represents the schema typexs:token
- See Also:
- Constant Field Values
-
XQBASETYPE_LANGUAGE
static final int XQBASETYPE_LANGUAGE
Represents the schema typexs:language
- See Also:
- Constant Field Values
-
XQBASETYPE_NAME
static final int XQBASETYPE_NAME
Represents the schema typexs:Name
- See Also:
- Constant Field Values
-
XQBASETYPE_NCNAME
static final int XQBASETYPE_NCNAME
Represents the schema typexs:NCName
- See Also:
- Constant Field Values
-
XQBASETYPE_NMTOKEN
static final int XQBASETYPE_NMTOKEN
Represents the schema typexs:NMToken
- See Also:
- Constant Field Values
-
XQBASETYPE_ID
static final int XQBASETYPE_ID
Represents the schema typexs:ID
- See Also:
- Constant Field Values
-
XQBASETYPE_IDREF
static final int XQBASETYPE_IDREF
Represents the schema typexs:IDREF
- See Also:
- Constant Field Values
-
XQBASETYPE_ENTITY
static final int XQBASETYPE_ENTITY
Represents the schema typexs:ENTITY
- See Also:
- Constant Field Values
-
XQBASETYPE_IDREFS
static 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_ENTITIES
static final int XQBASETYPE_ENTITIES
Represents the schema typexs:ENTITIES
- See Also:
- Constant Field Values
-
XQBASETYPE_NMTOKENS
static final int XQBASETYPE_NMTOKENS
Represents the schema typexs:NMTOKENS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseType
int getBaseType() throws XQException
Returns 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
, orXQITEMKIND_ATOMIC
-
getItemKind
int 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
-
getItemOccurrence
int getItemOccurrence()
Returns the occurrence indicator for the item type. This method will always return the valueXQSequenceType.OCC_EXACTLY_ONE
.- Specified by:
getItemOccurrence
in interfaceXQSequenceType
- Returns:
- int indicating the occurrence indicator
-
toString
java.lang.String toString()
Returns a human-readable implementation-defined string representation of the item type.- Specified by:
toString
in interfaceXQSequenceType
- Overrides:
toString
in classjava.lang.Object
- Returns:
- String a string representation of the item type
-
getNodeName
javax.xml.namespace.QName getNodeName() throws XQException
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
.For example, in the case of a type for
element "foo"
this will return theQName foo
. For wildcard entries anull
value will be returned.- Returns:
QName
for the name of the element, attribute, or document element node.null
if 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
, orXQITEMKIND_SCHEMA_ATTRIBUTE
-
getSchemaURI
java.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 anull
value 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:
URI
representing the schema location URI of the XMLSchema containing the global element definition or the type definition of the current item.null
in case the item is not schema validated or if the implementation does not support retrieving the schema URI.
-
getTypeName
javax.xml.namespace.QName getTypeName() throws XQException
Represents 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 actualQName
value returned is implementation defined.- Returns:
- the
QName
of 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
, orXQITEMKIND_SCHEMA_ATTRIBUTE
-
isAnonymousType
boolean isAnonymousType()
Represents whether the item type is an anonymous type in the schema.- Returns:
true
if the item type is an anonymous type in the schema,false
otherwise
-
isElementNillable
boolean isElementNillable()
Returns whether the element type is nillable or not.- Returns:
true
if the element type is nillable,false
otherwise
-
getPIName
java.lang.String getPIName() throws XQException
Returns the name of the processing instruction type. As such the item kind of thisXQItemType
must beXQITEMKIND_PI
.- Returns:
- the name of the processing instruction type.
null
if it is a wildcard - Throws:
XQException
- if the item kind is notXQITEMKIND_PI
-
equals
boolean equals(java.lang.Object o)
Compares the specified object with this item type for equality. The result istrue
only if the argument is an item type object which represents the same XQuery item type.In order to comply with the general contract of
equals
andhashCode
across different implementations the following algorithm must be used. Returntrue
if and only if both objects areXQItemType
and: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 equalisElementNillable()
is equal- if
getPIName()
is supported for the item kind, it must be equal
- Specified by:
equals
in interfaceXQSequenceType
- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- anXQItemType
object representing an XQuery item type- Returns:
true
if the input item type object represents the same XQuery item type,false
otherwise
-
hashCode
int hashCode()
Returns a hash code consistent with the definition of the equals method.In order to comply with the general contract of
equals
andhashCode
across 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:
hashCode
in interfaceXQSequenceType
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hash code for this item type
-
-