|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.schema.SimpleTypesFactory
public class SimpleTypesFactory
SimpleTypesFactory provides code constants for every built in type defined in www.w3.org/TR/xmlschma-2-20000407 USER_TYPE is used for user derived types. This factory can also create instances of classes derived from SimpleType that represent the simple types defined by xmlschema and those derived from them.
Field Summary | |
---|---|
static int |
ANYSIMPLETYPE_TYPE
|
static int |
ANYURI_TYPE
|
static int |
BASE64BINARY_TYPE
|
static int |
BOOLEAN_TYPE
|
static int |
BYTE_TYPE
|
static int |
DATE_TYPE
|
static int |
DATETIME_TYPE
|
static int |
DECIMAL_TYPE
|
static int |
DOUBLE_TYPE
|
static int |
DURATION_TYPE
|
static int |
ENTITIES_TYPE
|
static int |
ENTITY_TYPE
|
static int |
FLOAT_TYPE
|
static int |
GDAY_TYPE
|
static int |
GMONTH_TYPE
|
static int |
GMONTHDAY_TYPE
|
static int |
GYEAR_TYPE
|
static int |
GYEARMONTH_TYPE
|
static int |
HEXBINARY_TYPE
|
static int |
ID_TYPE
|
static int |
IDREF_TYPE
|
static int |
IDREFS_TYPE
|
static int |
INT_TYPE
|
static int |
INTEGER_TYPE
|
static int |
INVALID_TYPE
This code is for errors or uninitialized types. |
static int |
LANGUAGE_TYPE
|
static int |
LONG_TYPE
|
static int |
NAME_TYPE
|
static int |
NCNAME_TYPE
|
static int |
NEGATIVE_INTEGER_TYPE
|
static int |
NMTOKEN_TYPE
|
static int |
NMTOKENS_TYPE
|
static int |
NON_NEGATIVE_INTEGER_TYPE
|
static int |
NON_POSITIVE_INTEGER_TYPE
|
static int |
NORMALIZEDSTRING_TYPE
|
static int |
NOTATION_TYPE
|
static int |
POSITIVE_INTEGER_TYPE
|
static int |
QNAME_TYPE
|
static int |
SHORT_TYPE
|
static int |
STRING_TYPE
|
static int |
TIME_TYPE
|
static int |
TOKEN_TYPE
|
static int |
UNSIGNED_BYTE_TYPE
|
static int |
UNSIGNED_INT_TYPE
|
static int |
UNSIGNED_LONG_TYPE
|
static int |
UNSIGNED_SHORT_TYPE
|
static int |
USER_TYPE
Simple type defined by the user |
Constructor Summary | |
---|---|
SimpleTypesFactory()
|
Method Summary | |
---|---|
SimpleType |
getBuiltInType(java.lang.String typeName)
Gets an instance of a class derived from SimpleType representing the
built in type which name is given as a parameter. |
java.lang.String |
getBuiltInTypeName(int builtInTypeCode)
Gets a built in type's name given its code. |
static boolean |
isBuiltInType(int codeType)
Indicates if a type code corresponds to an xml schema built in type. |
static boolean |
isDateTimeType(int codeType)
Tells if a type code corresponds to an xml schema (built-in) date/time type. |
static boolean |
isNumericType(int codeType)
Tells if a type code corresponds to an xml schema (built-in) numeric type. |
static boolean |
isPrimitiveType(int codeType)
Tells if a type code corresponds to an xml schema (built-in) primitive type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INVALID_TYPE
public static final int USER_TYPE
public static final int STRING_TYPE
public static final int DURATION_TYPE
public static final int DATETIME_TYPE
public static final int TIME_TYPE
public static final int DATE_TYPE
public static final int GYEARMONTH_TYPE
public static final int GYEAR_TYPE
public static final int GMONTHDAY_TYPE
public static final int GDAY_TYPE
public static final int GMONTH_TYPE
public static final int BOOLEAN_TYPE
public static final int BASE64BINARY_TYPE
public static final int HEXBINARY_TYPE
public static final int FLOAT_TYPE
public static final int DOUBLE_TYPE
public static final int DECIMAL_TYPE
public static final int ANYURI_TYPE
public static final int QNAME_TYPE
public static final int NOTATION_TYPE
public static final int NORMALIZEDSTRING_TYPE
public static final int TOKEN_TYPE
public static final int LANGUAGE_TYPE
public static final int NAME_TYPE
public static final int NCNAME_TYPE
public static final int ID_TYPE
public static final int IDREF_TYPE
public static final int IDREFS_TYPE
public static final int ENTITY_TYPE
public static final int ENTITIES_TYPE
public static final int NMTOKEN_TYPE
public static final int NMTOKENS_TYPE
public static final int INTEGER_TYPE
public static final int NON_POSITIVE_INTEGER_TYPE
public static final int NEGATIVE_INTEGER_TYPE
public static final int LONG_TYPE
public static final int INT_TYPE
public static final int SHORT_TYPE
public static final int BYTE_TYPE
public static final int NON_NEGATIVE_INTEGER_TYPE
public static final int UNSIGNED_LONG_TYPE
public static final int UNSIGNED_INT_TYPE
public static final int UNSIGNED_SHORT_TYPE
public static final int UNSIGNED_BYTE_TYPE
public static final int POSITIVE_INTEGER_TYPE
public static final int ANYSIMPLETYPE_TYPE
Constructor Detail |
---|
public SimpleTypesFactory()
Method Detail |
---|
public static boolean isBuiltInType(int codeType)
codeType
- The type code to check.
public static boolean isPrimitiveType(int codeType)
codeType
- The type code to check.
public static boolean isNumericType(int codeType)
codeType
- The type code to check.
public static boolean isDateTimeType(int codeType)
codeType
- The type code to check.
public SimpleType getBuiltInType(java.lang.String typeName)
SimpleType
representing the
built in type which name is given as a parameter.
typeName
- Name of the simple type.
SimpleType
instance for the type name.public java.lang.String getBuiltInTypeName(int builtInTypeCode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |