|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ListType>
org.basex.query.value.type.ListType
public enum ListType
XQuery list types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.basex.query.value.type.Type |
---|
Type.ID |
Enum Constant Summary | |
---|---|
ENT
ENTITIES type. |
|
IDR
IDREFS type. |
|
NMT
NMTOKENS type. |
Field Summary | |
---|---|
static ListType[] |
VALUES
Cached enums (faster). |
Method Summary | |
---|---|
abstract 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 o,
QueryContext ctx,
InputInfo ii)
Casts the specified string to the XQuery data type. |
protected static Value |
create(Item it,
QueryContext ctx,
InputInfo ii,
AtomType type)
Creates a sequence with the resulting list items. |
boolean |
eq(Type t)
Checks if this type is equal to the given one. |
static ListType |
find(QNm type)
Finds and returns the specified data type. |
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. |
static ListType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ListType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ListType NMT
public static final ListType ENT
public static final ListType IDR
Field Detail |
---|
public static final ListType[] VALUES
Method Detail |
---|
public static ListType[] values()
for (ListType c : ListType.values()) System.out.println(c);
public static ListType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullprotected static Value create(Item it, QueryContext ctx, InputInfo ii, AtomType type) throws QueryException
it
- itemctx
- query contextii
- input infotype
- result type
QueryException
- query exceptionpublic static ListType find(QNm type)
type
- type as string
null
public boolean isNumber()
Type
isNumber
in interface Type
public boolean isUntyped()
Type
isUntyped
in interface Type
public boolean isNumberOrUntyped()
Type
isNumberOrUntyped
in interface Type
public boolean isStringOrUntyped()
Type
isStringOrUntyped
in interface Type
public byte[] string()
Type
string
in interface Type
public abstract Value cast(Item it, QueryContext ctx, InputInfo ii) throws QueryException
Type
cast
in interface Type
it
- item to be convertedctx
- query contextii
- input info
QueryException
- query exceptionpublic Value cast(java.lang.Object o, QueryContext ctx, InputInfo ii) throws QueryException
Type
cast
in interface Type
o
- Java objectctx
- TODOii
- input info
QueryException
- query exceptionpublic Value castString(java.lang.String o, QueryContext ctx, InputInfo ii) throws QueryException
Type
castString
in interface Type
o
- string objectctx
- TODOii
- input info
QueryException
- query exceptionpublic SeqType seqType()
Type
seqType
in interface Type
public boolean eq(Type t)
Type
eq
in interface Type
t
- other type
true
if both types are equal, false
otherwisepublic final boolean instanceOf(Type t)
Type
instanceOf
in interface Type
t
- type to be checked
public Type union(Type t)
Type
union
in interface Type
t
- other type
public Type intersect(Type t)
Type
null
is
returned.
intersect
in interface Type
t
- other type
null
public final boolean isNode()
Type
isNode
in interface Type
public Type.ID id()
Type
id
in interface Type
public boolean nsSensitive()
Type
nsSensitive
in interface Type
public java.lang.String toString()
toString
in interface Type
toString
in class java.lang.Enum<ListType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |