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
ANYURI_TYPE
public static final int ANYURI_TYPE
BASE64BINARY_TYPE
public static final int BASE64BINARY_TYPE
BOOLEAN_TYPE
public static final int BOOLEAN_TYPE
BYTE_TYPE
public static final int BYTE_TYPE
DATETIME_TYPE
public static final int DATETIME_TYPE
DATE_TYPE
public static final int DATE_TYPE
DECIMAL_TYPE
public static final int DECIMAL_TYPE
DOUBLE_TYPE
public static final int DOUBLE_TYPE
DURATION_TYPE
public static final int DURATION_TYPE
ENTITIES_TYPE
public static final int ENTITIES_TYPE
ENTITY_TYPE
public static final int ENTITY_TYPE
FLOAT_TYPE
public static final int FLOAT_TYPE
GDAY_TYPE
public static final int GDAY_TYPE
GMONTHDAY_TYPE
public static final int GMONTHDAY_TYPE
GMONTH_TYPE
public static final int GMONTH_TYPE
GYEARMONTH_TYPE
public static final int GYEARMONTH_TYPE
GYEAR_TYPE
public static final int GYEAR_TYPE
HEXBINARY_TYPE
public static final int HEXBINARY_TYPE
IDREFS_TYPE
public static final int IDREFS_TYPE
IDREF_TYPE
public static final int IDREF_TYPE
ID_TYPE
public static final int ID_TYPE
INTEGER_TYPE
public static final int INTEGER_TYPE
INT_TYPE
public static final int INT_TYPE
INVALID_TYPE
public static final int INVALID_TYPE
This code is for errors or uninitialized types.
LANGUAGE_TYPE
public static final int LANGUAGE_TYPE
LONG_TYPE
public static final int LONG_TYPE
NAME_TYPE
public static final int NAME_TYPE
NCNAME_TYPE
public static final int NCNAME_TYPE
NEGATIVE_INTEGER_TYPE
public static final int NEGATIVE_INTEGER_TYPE
NMTOKENS_TYPE
public static final int NMTOKENS_TYPE
NMTOKEN_TYPE
public static final int NMTOKEN_TYPE
NON_NEGATIVE_INTEGER_TYPE
public static final int NON_NEGATIVE_INTEGER_TYPE
NON_POSITIVE_INTEGER_TYPE
public static final int NON_POSITIVE_INTEGER_TYPE
NORMALIZEDSTRING_TYPE
public static final int NORMALIZEDSTRING_TYPE
NOTATION_TYPE
public static final int NOTATION_TYPE
POSITIVE_INTEGER_TYPE
public static final int POSITIVE_INTEGER_TYPE
QNAME_TYPE
public static final int QNAME_TYPE
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
STRING_TYPE
public static final int STRING_TYPE
TIME_TYPE
public static final int TIME_TYPE
TOKEN_TYPE
public static final int TOKEN_TYPE
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
UNSIGNED_INT_TYPE
public static final int UNSIGNED_INT_TYPE
UNSIGNED_LONG_TYPE
public static final int UNSIGNED_LONG_TYPE
UNSIGNED_SHORT_TYPE
public static final int UNSIGNED_SHORT_TYPE
USER_TYPE
public static final int USER_TYPE
Simple type defined by the user
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