|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Type
XQuery data types.
Nested Class Summary | |
---|---|
static class |
Type.ID
Type IDs for client/server communication. |
Method Summary | |
---|---|
Value |
cast(Item it,
QueryContext ctx,
InputInfo ii)
Casts the specified item to the XQuery data type. |
Value |
cast(java.lang.Object o,
QueryContext ctx,
InputInfo ii)
Casts the specified Java object to the XQuery data type. |
Value |
castString(java.lang.String s,
QueryContext ctx,
InputInfo ii)
Casts the specified string to the XQuery data type. |
boolean |
eq(Type t)
Checks if this type is equal to the given one. |
Type.ID |
id()
Returns a type id to differentiate all types. |
boolean |
instanceOf(Type t)
Checks if the current type is an instance of the specified type. |
Type |
intersect(Type t)
Computes the intersection between this type and the given one, i.e. |
boolean |
isNode()
Checks if the type refers to a node. |
boolean |
isNumber()
Checks if the type refers to a number. |
boolean |
isNumberOrUntyped()
Checks if the type refers to a number or an untyped item. |
boolean |
isStringOrUntyped()
Checks if the type refers to a number or a string. |
boolean |
isUntyped()
Checks if the type refers to an untyped item. |
boolean |
nsSensitive()
Checks if the type is namespace-sensitive. |
SeqType |
seqType()
Returns the sequence type of this data type. |
byte[] |
string()
Returns the string representation of this type. |
java.lang.String |
toString()
|
Type |
union(Type t)
Computes the union between this type and the given one, i.e. |
Method Detail |
---|
Value cast(Item it, QueryContext ctx, InputInfo ii) throws QueryException
it
- item to be convertedctx
- query contextii
- input info
QueryException
- query exceptionValue cast(java.lang.Object o, QueryContext ctx, InputInfo ii) throws QueryException
o
- Java objectctx
- TODOii
- input info
QueryException
- query exceptionValue castString(java.lang.String s, QueryContext ctx, InputInfo ii) throws QueryException
s
- string objectctx
- TODOii
- input info
QueryException
- query exceptionSeqType seqType()
boolean eq(Type t)
t
- other type
true
if both types are equal, false
otherwiseboolean instanceOf(Type t)
t
- type to be checked
Type union(Type t)
t
- other type
Type intersect(Type t)
null
is
returned.
t
- other type
null
boolean isNode()
boolean isNumber()
boolean isUntyped()
boolean isNumberOrUntyped()
boolean isStringOrUntyped()
byte[] string()
Type.ID id()
java.lang.String toString()
toString
in class java.lang.Object
boolean nsSensitive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |