|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xquery.value.Type
Defines all built-in types and their relations.
Field Summary | |
static int |
ANY_TYPE
|
static int |
ANY_URI
|
static int |
ATOMIC
|
static int |
ATTRIBUTE
|
static int |
BASE64_BINARY
|
static int |
BOOLEAN
|
static int |
BYTE
|
static int |
COMMENT
|
static int |
DATE
|
static int |
DATE_TIME
|
static int |
DAY_TIME_DURATION
|
static int |
DECIMAL
|
static int |
DOCUMENT
|
static int |
DOUBLE
|
static int |
DURATION
|
static int |
ELEMENT
|
static int |
EMPTY
|
static int |
ENTITY
|
static int |
FLOAT
|
static int |
FUNCTION_REFERENCE
|
static int |
GDAY
|
static int |
GMONTH
|
static int |
GMONTHDAY
|
static int |
GYEAR
|
static int |
GYEARMONTH
|
static int |
HEX_BINARY
|
static int |
ID
|
static int |
IDREF
|
static int |
IDX_FULLTEXT
Special type constant to indicate that an item has been fulltext indexed. |
static int |
INT
|
static int |
INTEGER
|
static int |
ITEM
|
static int |
JAVA_OBJECT
|
static int |
LANGUAGE
|
static int |
LONG
|
static int |
NAME
|
static int |
NAMESPACE
|
static int |
NCNAME
|
static int |
NEGATIVE_INTEGER
|
static int |
NMTOKEN
|
static int |
NODE
|
static java.lang.String[] |
NODETYPES
|
static int |
NON_NEGATIVE_INTEGER
|
static int |
NON_POSITIVE_INTEGER
|
static int |
NORMALIZED_STRING
|
static int |
NUMBER
|
static int |
POSITIVE_INTEGER
|
static int |
PROCESSING_INSTRUCTION
|
static int |
QNAME
|
static int |
SHORT
|
static int |
STRING
|
static int |
TEXT
|
static int |
TIME
|
static int |
TOKEN
|
static int |
UNSIGNED_BYTE
|
static int |
UNSIGNED_INT
|
static int |
UNSIGNED_LONG
|
static int |
UNSIGNED_SHORT
|
static int |
UNTYPED_ATOMIC
|
static int |
YEAR_MONTH_DURATION
|
Constructor Summary | |
Type()
|
Method Summary | |
static void |
defineBuiltInType(int type,
java.lang.String name)
|
static void |
defineSubType(int supertype,
int subtype)
Define supertype/subtype relation. |
static int |
getCommonSuperType(int type1,
int type2)
Find a common supertype for two given type codes. |
static int |
getSuperType(int subtype)
Get the type code of the supertype of the specified subtype. |
static int |
getType(QName qname)
Get the type code for a type identified by its QName. |
static int |
getType(java.lang.String name)
Get the type code for a type identified by its internal name. |
static java.lang.String |
getTypeName(int type)
Get the internal name for the built-in type. |
static boolean |
subTypeOf(int subtype,
int supertype)
Check if the given type code is a subtype of the specified supertype. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] NODETYPES
public static final int NODE
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int TEXT
public static final int PROCESSING_INSTRUCTION
public static final int COMMENT
public static final int DOCUMENT
public static final int NAMESPACE
public static final int EMPTY
public static final int ITEM
public static final int ANY_TYPE
public static final int ATOMIC
public static final int UNTYPED_ATOMIC
public static final int STRING
public static final int BOOLEAN
public static final int QNAME
public static final int ANY_URI
public static final int BASE64_BINARY
public static final int HEX_BINARY
public static final int NUMBER
public static final int INTEGER
public static final int DECIMAL
public static final int FLOAT
public static final int DOUBLE
public static final int NON_POSITIVE_INTEGER
public static final int NEGATIVE_INTEGER
public static final int LONG
public static final int INT
public static final int SHORT
public static final int BYTE
public static final int NON_NEGATIVE_INTEGER
public static final int UNSIGNED_LONG
public static final int UNSIGNED_INT
public static final int UNSIGNED_SHORT
public static final int UNSIGNED_BYTE
public static final int POSITIVE_INTEGER
public static final int DATE_TIME
public static final int DATE
public static final int TIME
public static final int DURATION
public static final int YEAR_MONTH_DURATION
public static final int DAY_TIME_DURATION
public static final int GYEAR
public static final int GMONTH
public static final int GDAY
public static final int GYEARMONTH
public static final int GMONTHDAY
public static final int TOKEN
public static final int NORMALIZED_STRING
public static final int LANGUAGE
public static final int NMTOKEN
public static final int NAME
public static final int NCNAME
public static final int ID
public static final int IDREF
public static final int ENTITY
public static final int JAVA_OBJECT
public static final int FUNCTION_REFERENCE
public static final int IDX_FULLTEXT
Constructor Detail |
public Type()
Method Detail |
public static final void defineBuiltInType(int type, java.lang.String name)
public static final java.lang.String getTypeName(int type)
type
- public static final int getType(java.lang.String name) throws XPathException
name
-
XPathException
public static final int getType(QName qname) throws XPathException
qname
-
XPathException
public static final void defineSubType(int supertype, int subtype)
supertype
- subtype
- public static final boolean subTypeOf(int subtype, int supertype)
subtype
- supertype
- public static final int getSuperType(int subtype)
subtype
- public static int getCommonSuperType(int type1, int type2)
type1
- type2
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |