|
Qizx/Open v0.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.xfra.qizxopen.xquery.Type | +--net.xfra.qizxopen.xquery.ItemType
class ItemType: encompasses AtomicType (anyAtomicType) and NodeType.
Field Summary | |
net.xfra.qizxopen.xquery.impl.SequenceType |
opt
The empty or length 1 SequenceType associated with this atomic type. |
net.xfra.qizxopen.xquery.impl.SequenceType |
plus
The '+' type sequence associated with this atomic type. |
net.xfra.qizxopen.xquery.impl.SequenceType |
star
The '*' type sequence associated with this atomic type. |
Fields inherited from class net.xfra.qizxopen.xquery.Type |
ANY, ANY_ATOMIC_TYPE, anyType, ANYURI, ATOM, ATTRIBUTE, BASE64_BINARY, BINARY, BOOLEAN, BYTE, CHAR, COMMENT, DATE, DATE_TIME, DAY_TIME_DURATION, DECIMAL, DOCUMENT, DOUBLE, DURATION, ELEMENT, ENTITY, ERR_EMPTY_UNEXPECTED, ERR_TOO_MANY, ERR_TYPE_MISMATCH, FLOAT, G_DAY, G_MONTH, G_MONTH_DAY, G_YEAR, G_YEAR_MONTH, HEX_BINARY, ID, IDREF, INT, INTEGER, ITEM, LANGUAGE, LONG, MOMENT, MULTI_OCC, NAME, NAMESPACE, NCNAME, NEGATIVE_INTEGER, NMTOKEN, NODE, NON_NEGATIVE_INTEGER, NON_POSITIVE_INTEGER, NONE, NORMALIZED_STRING, NOTATION, NUMERIC, OBJECT, ONE_OCC, OPT_OCC, OPTMULTI_OCC, PI, POSITIVE_INTEGER, QNAME, SHORT, STRING, TEXT, TIME, TOKEN, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_LONG, UNSIGNED_SHORT, UNTYPED_ATOMIC, untypedAtomic, WRAPPED_OBJECT, YEAR_MONTH_DURATION |
Constructor Summary | |
ItemType()
|
Method Summary | |
boolean |
accepts(Type valueType)
Static type checking. |
boolean |
acceptsItem(Item item)
Dynamic matching of a single item. |
Value |
cast(Value value,
EvalContext context)
Attempts to cast the current item of the value to this type. |
Value |
convertFromArray(java.lang.Object object)
Conversion of external Java array of related type to internal value. |
java.lang.Object |
convertToArray(Value value)
Conversion of internal value to external Java array of proper type. |
ItemType |
getItemType()
If this is a sequence type, return the item type, otherwise return the type itself. |
java.lang.String |
getShortName()
|
ItemType |
getSuperType()
|
boolean |
isDerivedFrom(ItemType root)
Derived in the sense of XSD hierarchy. |
boolean |
isSuperType(ItemType subtype)
SuperType with slight differences wrt XSD: introduces NumericType, MomentType |
Methods inherited from class net.xfra.qizxopen.xquery.Type |
check, convertFromObject, convertToObject, dump, findItemType, getName, getOccurrence, isOptional, isRepeatable, test, toString, toString, unionWith |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public net.xfra.qizxopen.xquery.impl.SequenceType star
public net.xfra.qizxopen.xquery.impl.SequenceType plus
public net.xfra.qizxopen.xquery.impl.SequenceType opt
Constructor Detail |
public ItemType()
Method Detail |
public boolean accepts(Type valueType)
Type
accepts
in class Type
public boolean acceptsItem(Item item)
Type
acceptsItem
in class Type
public ItemType getItemType()
Type
getItemType
in class Type
public java.lang.String getShortName()
getShortName
in class Type
public ItemType getSuperType()
public boolean isSuperType(ItemType subtype)
public boolean isDerivedFrom(ItemType root)
public Value cast(Value value, EvalContext context) throws TypeException
xquery.TypeException
- if the item's type or value is incompatible.
TypeException
public Value convertFromArray(java.lang.Object object)
public java.lang.Object convertToArray(Value value) throws XQueryException
XQueryException
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |