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.
ANYSIMPLETYPE_TYPE
public static final int ANYSIMPLETYPE_TYPE
- 100
ANYURI_TYPE
public static final int ANYURI_TYPE
- 17
BASE64BINARY_TYPE
public static final int BASE64BINARY_TYPE
- 12
BOOLEAN_TYPE
public static final int BOOLEAN_TYPE
- 11
BYTE_TYPE
public static final int BYTE_TYPE
- 38
DATETIME_TYPE
public static final int DATETIME_TYPE
- 3
DATE_TYPE
public static final int DATE_TYPE
- 5
DECIMAL_TYPE
public static final int DECIMAL_TYPE
- 16
DOUBLE_TYPE
public static final int DOUBLE_TYPE
- 15
DURATION_TYPE
public static final int DURATION_TYPE
- 2
ENTITIES_TYPE
public static final int ENTITIES_TYPE
- 29
ENTITY_TYPE
public static final int ENTITY_TYPE
- 28
FLOAT_TYPE
public static final int FLOAT_TYPE
- 14
GDAY_TYPE
public static final int GDAY_TYPE
- 9
GMONTHDAY_TYPE
public static final int GMONTHDAY_TYPE
- 8
GMONTH_TYPE
public static final int GMONTH_TYPE
- 10
GYEARMONTH_TYPE
public static final int GYEARMONTH_TYPE
- 6
GYEAR_TYPE
public static final int GYEAR_TYPE
- 7
HEXBINARY_TYPE
public static final int HEXBINARY_TYPE
- 13
IDREFS_TYPE
public static final int IDREFS_TYPE
- 27
IDREF_TYPE
public static final int IDREF_TYPE
- 26
ID_TYPE
public static final int ID_TYPE
- 25
INTEGER_TYPE
public static final int INTEGER_TYPE
- 32
INT_TYPE
public static final int INT_TYPE
- 36
INVALID_TYPE
public static final int INVALID_TYPE
This code is for errors or uninitialized types.
- -1
LANGUAGE_TYPE
public static final int LANGUAGE_TYPE
- 22
LONG_TYPE
public static final int LONG_TYPE
- 35
NAME_TYPE
public static final int NAME_TYPE
- 23
NCNAME_TYPE
public static final int NCNAME_TYPE
- 24
NEGATIVE_INTEGER_TYPE
public static final int NEGATIVE_INTEGER_TYPE
- 34
NMTOKENS_TYPE
public static final int NMTOKENS_TYPE
- 31
NMTOKEN_TYPE
public static final int NMTOKEN_TYPE
- 30
NON_NEGATIVE_INTEGER_TYPE
public static final int NON_NEGATIVE_INTEGER_TYPE
- 39
NON_POSITIVE_INTEGER_TYPE
public static final int NON_POSITIVE_INTEGER_TYPE
- 33
NORMALIZEDSTRING_TYPE
public static final int NORMALIZEDSTRING_TYPE
- 20
NOTATION_TYPE
public static final int NOTATION_TYPE
- 19
POSITIVE_INTEGER_TYPE
public static final int POSITIVE_INTEGER_TYPE
- 44
QNAME_TYPE
public static final int QNAME_TYPE
- 18
RESOURCE_LOCATION
(package private) static final String RESOURCE_LOCATION
The resource location for the built-in types
property files
SHORT_TYPE
public static final int SHORT_TYPE
- 37
STRING_TYPE
public static final int STRING_TYPE
- 1
TIME_TYPE
public static final int TIME_TYPE
- 4
TOKEN_TYPE
public static final int TOKEN_TYPE
- 21
TYPE_DEFINITIONS
(package private) static final String TYPE_DEFINITIONS
The resource for the Simple types
TYPE_MAPPINGS
(package private) static final String TYPE_MAPPINGS
The resource for the mapping properties
UNSIGNED_BYTE_TYPE
public static final int UNSIGNED_BYTE_TYPE
- 43
UNSIGNED_INT_TYPE
public static final int UNSIGNED_INT_TYPE
- 41
UNSIGNED_LONG_TYPE
public static final int UNSIGNED_LONG_TYPE
- 40
UNSIGNED_SHORT_TYPE
public static final int UNSIGNED_SHORT_TYPE
- 42
USER_TYPE
public static final int USER_TYPE
Simple type defined by the user
- 0
createUserSimpleType
(package private) SimpleType createUserSimpleType(Schema schema,
String name,
String baseName,
String derivation,
boolean createDeferredSimpleType)
Creates an instance of a class derived from SimpleType, representing the
user type defined by the given name, baseName and derivation method.
Package private (used by Schema and DeferredSimpleType).
The given schema is used as the owning Schema document, yet a call to
schema.addSimpleType must till be made to add the SimpleType to the Schema.
If the base type is not found in the schema, a DeferredSimpleType
will be returned if createDeferredSimpleType is true, null otherwise.
schema
- the owning schemaname
- the name of the SimpleTypebaseName
- the name of the SimpleType's base typederivation
- the name of the derivation method (null/""/"list"/"restriction")createDeferredSimpleType
- should the type be deferred if it can't be created.
- the new SimpleType, or null if its parent could not be found.
createUserSimpleType
(package private) SimpleType createUserSimpleType(Schema schema,
String name,
SimpleType baseType,
String derivation)
Creates an instance of a class derived from SimpleType, representing the
user type defined by the given name, baseName and derivation method.
Package private (used by Schema and DeferredSimpleType).
The given schema is used as the owning Schema document, yet a call to
schema#addSimpleType must still be made to add the SimpleType to the
Schema if the SimpleType is not anonymous.
If the base type is not found in the schema, a DeferredSimpleType
will be returned if createDeferredSimpleType is true, null otherwise.
schema
- the owning schemaname
- the name of the SimpleTypebaseType
- the base typederivation
- the name of the derivation method (null/""/"list"/"restriction")
- the new SimpleType, or null if its parent could not be found.
getBuiltInType
public SimpleType getBuiltInType(String typeName)
Gets an instance of a class derived from SimpleType representing the
built in type which name is given as a parameter.
getBuiltInTypeName
public String getBuiltInTypeName(int builtInTypeCode)
Gets a built in type's name given its code.
isBuiltInType
public static boolean isBuiltInType(int codeType)
Tells if a type code corresponds to an xml schema built in type
isPrimitiveType
public static boolean isPrimitiveType(int codeType)
Tells if a type code corresponds to an xml schema (built in) primitive type