Qizx/db 2.1 API

com.qizx.api
Interface ItemType

All Superinterfaces:
SequenceType

public interface ItemType
extends SequenceType

The type of an Item as defined in the XML Query language.

A predefined type can be obtained from an ItemFactory - i.e. a Library or an Expression - by the method getType(name).

Note: in the current version, custom types are not supported.


Field Summary
 
Fields inherited from interface com.qizx.api.SequenceType
OCC_EXACTLY_ONE, OCC_ONE_OR_MORE, OCC_ZERO_OR_MORE, OCC_ZERO_OR_ONE
 
Method Summary
 QName getName()
          Returns the fully qualified name of the type.
 String getShortName()
          Short name as a string.
 ItemType getSuperType()
          Returns the type from which this type is derived immediately.
 boolean isSubTypeOf(ItemType type)
          Tests is this type is derived from another type.
 
Methods inherited from interface com.qizx.api.SequenceType
getItemType, getOccurrence
 

Method Detail

getName

public QName getName()
Returns the fully qualified name of the type.

Returns:
a qualified name, for example "xs:integer"

getShortName

public String getShortName()
Short name as a string. For example "xs:string". Such a name can also be used for obtaining a predefined type from an ItemFactory.

Returns:
a string which is the the short name of a predefined type, for example "decimal".

getSuperType

public ItemType getSuperType()
Returns the type from which this type is derived immediately.

Returns:
the parent type

isSubTypeOf

public boolean isSubTypeOf(ItemType type)
Tests is this type is derived from another type.

Parameters:
type - another Item type
Returns:
true if this type is derived from argument type.

© 2008 Axyana Software