|
Qizx/Open v0.4p2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.xfra.qizxopen.xquery.Type
Superclass of all Type representations.
Field Summary | |
static Type |
ANY
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
ANY_ATOMIC_TYPE
|
static QName |
anyType
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
ANYURI
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
ATOM
|
static net.xfra.qizxopen.xquery.dt.NodeType |
ATTRIBUTE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
BASE64_BINARY
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
BINARY
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
BOOLEAN
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
BYTE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
CHAR
|
static net.xfra.qizxopen.xquery.dt.NodeType |
COMMENT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
DATE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
DATE_TIME
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
DAY_TIME_DURATION
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
DECIMAL
|
static net.xfra.qizxopen.xquery.dt.NodeType |
DOCUMENT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
DOUBLE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
DURATION
|
static net.xfra.qizxopen.xquery.dt.NodeType |
ELEMENT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
ENTITY
|
static java.lang.String |
ERR_EMPTY_UNEXPECTED
|
static java.lang.String |
ERR_TOO_MANY
|
static java.lang.String |
ERR_TYPE_MISMATCH
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
FLOAT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
G_DAY
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
G_MONTH
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
G_MONTH_DAY
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
G_YEAR
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
G_YEAR_MONTH
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
HEX_BINARY
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
ID
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
IDREF
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
INT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
INTEGER
|
static ItemType |
ITEM
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
LANGUAGE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
LONG
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
MOMENT
|
static byte |
MULTI_OCC
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NAME
|
static net.xfra.qizxopen.xquery.dt.NodeType |
NAMESPACE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NCNAME
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NEGATIVE_INTEGER
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NMTOKEN
|
static net.xfra.qizxopen.xquery.dt.NodeType |
NODE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NON_NEGATIVE_INTEGER
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NON_POSITIVE_INTEGER
|
static ItemType |
NONE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NORMALIZED_STRING
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NOTATION
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
NUMERIC
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
OBJECT
|
static byte |
ONE_OCC
|
static byte |
OPT_OCC
|
static byte |
OPTMULTI_OCC
|
static net.xfra.qizxopen.xquery.dt.NodeType |
PI
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
POSITIVE_INTEGER
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
QNAME
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
SHORT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
STRING
|
static net.xfra.qizxopen.xquery.dt.NodeType |
TEXT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
TIME
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
TOKEN
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
UNSIGNED_BYTE
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
UNSIGNED_INT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
UNSIGNED_LONG
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
UNSIGNED_SHORT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
UNTYPED_ATOMIC
|
static QName |
untypedAtomic
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
WRAPPED_OBJECT
|
static net.xfra.qizxopen.xquery.dt.AtomicType |
YEAR_MONTH_DURATION
|
Constructor Summary | |
Type()
|
Method Summary | |
boolean |
accepts(Type expressionType)
Static type checking. |
boolean |
acceptsItem(Item item)
Dynamic matching of a single item. |
Value |
check(Value value)
Dynamic matching. |
Value |
convertFromObject(java.lang.Object object)
Conversion of external Java objects to internal values. |
java.lang.Object |
convertToObject(net.xfra.qizxopen.xquery.op.Expression expr,
Focus focus,
EvalContext context)
Conversion of internal values to external Java objects. |
void |
dump(ExprDump d)
|
static ItemType |
findItemType(QName typeName)
Searches a predefined Item Type by name. |
ItemType |
getItemType()
If this is a sequence type, return the item type, otherwise return the type itself. |
QName |
getName()
|
int |
getOccurrence()
If this is a sequence type, return the occurrence indicator, otherwise return ONE_OCC, except for anyType which is '*'. |
java.lang.String |
getShortName()
|
static boolean |
isOptional(int occ)
|
static boolean |
isRepeatable(int occ)
|
boolean |
test(Value value)
Tests that a value matches a type. |
java.lang.String |
toString()
|
java.lang.String |
toString(StaticContext ctx)
|
Type |
unionWith(Type that)
Returns a type encompassing types this and that. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte ONE_OCC
public static final byte OPT_OCC
public static final byte MULTI_OCC
public static final byte OPTMULTI_OCC
public static final java.lang.String ERR_EMPTY_UNEXPECTED
public static final java.lang.String ERR_TOO_MANY
public static final java.lang.String ERR_TYPE_MISMATCH
public static QName anyType
public static QName untypedAtomic
public static Type ANY
public static ItemType NONE
public static ItemType ITEM
public static net.xfra.qizxopen.xquery.dt.NodeType NODE
public static net.xfra.qizxopen.xquery.dt.NodeType ELEMENT
public static net.xfra.qizxopen.xquery.dt.NodeType DOCUMENT
public static net.xfra.qizxopen.xquery.dt.NodeType ATTRIBUTE
public static net.xfra.qizxopen.xquery.dt.NodeType TEXT
public static net.xfra.qizxopen.xquery.dt.NodeType PI
public static net.xfra.qizxopen.xquery.dt.NodeType COMMENT
public static net.xfra.qizxopen.xquery.dt.NodeType NAMESPACE
public static net.xfra.qizxopen.xquery.dt.AtomicType ATOM
public static net.xfra.qizxopen.xquery.dt.AtomicType ANY_ATOMIC_TYPE
public static net.xfra.qizxopen.xquery.dt.AtomicType MOMENT
public static net.xfra.qizxopen.xquery.dt.AtomicType TIME
public static net.xfra.qizxopen.xquery.dt.AtomicType DATE
public static net.xfra.qizxopen.xquery.dt.AtomicType DATE_TIME
public static net.xfra.qizxopen.xquery.dt.AtomicType G_DAY
public static net.xfra.qizxopen.xquery.dt.AtomicType G_MONTH
public static net.xfra.qizxopen.xquery.dt.AtomicType G_YEAR
public static net.xfra.qizxopen.xquery.dt.AtomicType G_YEAR_MONTH
public static net.xfra.qizxopen.xquery.dt.AtomicType G_MONTH_DAY
public static net.xfra.qizxopen.xquery.dt.AtomicType DURATION
public static net.xfra.qizxopen.xquery.dt.AtomicType UNTYPED_ATOMIC
public static net.xfra.qizxopen.xquery.dt.AtomicType BOOLEAN
public static net.xfra.qizxopen.xquery.dt.AtomicType BINARY
public static net.xfra.qizxopen.xquery.dt.AtomicType HEX_BINARY
public static net.xfra.qizxopen.xquery.dt.AtomicType BASE64_BINARY
public static net.xfra.qizxopen.xquery.dt.AtomicType NUMERIC
public static net.xfra.qizxopen.xquery.dt.AtomicType FLOAT
public static net.xfra.qizxopen.xquery.dt.AtomicType DOUBLE
public static net.xfra.qizxopen.xquery.dt.AtomicType DECIMAL
public static net.xfra.qizxopen.xquery.dt.AtomicType INTEGER
public static net.xfra.qizxopen.xquery.dt.AtomicType NON_POSITIVE_INTEGER
public static net.xfra.qizxopen.xquery.dt.AtomicType NEGATIVE_INTEGER
public static net.xfra.qizxopen.xquery.dt.AtomicType LONG
public static net.xfra.qizxopen.xquery.dt.AtomicType INT
public static net.xfra.qizxopen.xquery.dt.AtomicType SHORT
public static net.xfra.qizxopen.xquery.dt.AtomicType BYTE
public static net.xfra.qizxopen.xquery.dt.AtomicType NON_NEGATIVE_INTEGER
public static net.xfra.qizxopen.xquery.dt.AtomicType UNSIGNED_LONG
public static net.xfra.qizxopen.xquery.dt.AtomicType UNSIGNED_INT
public static net.xfra.qizxopen.xquery.dt.AtomicType UNSIGNED_SHORT
public static net.xfra.qizxopen.xquery.dt.AtomicType UNSIGNED_BYTE
public static net.xfra.qizxopen.xquery.dt.AtomicType POSITIVE_INTEGER
public static net.xfra.qizxopen.xquery.dt.AtomicType STRING
public static net.xfra.qizxopen.xquery.dt.AtomicType NORMALIZED_STRING
public static net.xfra.qizxopen.xquery.dt.AtomicType TOKEN
public static net.xfra.qizxopen.xquery.dt.AtomicType LANGUAGE
public static net.xfra.qizxopen.xquery.dt.AtomicType NAME
public static net.xfra.qizxopen.xquery.dt.AtomicType NCNAME
public static net.xfra.qizxopen.xquery.dt.AtomicType ID
public static net.xfra.qizxopen.xquery.dt.AtomicType IDREF
public static net.xfra.qizxopen.xquery.dt.AtomicType ENTITY
public static net.xfra.qizxopen.xquery.dt.AtomicType NMTOKEN
public static net.xfra.qizxopen.xquery.dt.AtomicType NOTATION
public static net.xfra.qizxopen.xquery.dt.AtomicType QNAME
public static net.xfra.qizxopen.xquery.dt.AtomicType ANYURI
public static net.xfra.qizxopen.xquery.dt.AtomicType OBJECT
public static net.xfra.qizxopen.xquery.dt.AtomicType WRAPPED_OBJECT
public static net.xfra.qizxopen.xquery.dt.AtomicType YEAR_MONTH_DURATION
public static net.xfra.qizxopen.xquery.dt.AtomicType DAY_TIME_DURATION
public static net.xfra.qizxopen.xquery.dt.AtomicType CHAR
Constructor Detail |
public Type()
Method Detail |
public static boolean isOptional(int occ)
public static boolean isRepeatable(int occ)
public boolean accepts(Type expressionType)
public Value check(Value value) throws XQueryException
value
- value to test.
XQueryException
public boolean test(Value value) throws XQueryException
XQueryException
public boolean acceptsItem(Item item)
public Type unionWith(Type that)
public ItemType getItemType()
public int getOccurrence()
public QName getName()
public java.lang.String getShortName()
public java.lang.String toString(StaticContext ctx)
public java.lang.String toString()
toString
in class java.lang.Object
public void dump(ExprDump d)
public Value convertFromObject(java.lang.Object object)
public java.lang.Object convertToObject(net.xfra.qizxopen.xquery.op.Expression expr, Focus focus, EvalContext context) throws XQueryException
XQueryException
public static ItemType findItemType(QName typeName)
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |