public class SimpleTypesFactory
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
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 |
|
(package private) static java.lang.String |
RESOURCE_LOCATION |
The resource location for the built-in types property files.
|
static int |
SHORT_TYPE |
|
static int |
STRING_TYPE |
|
static int |
TIME_TYPE |
|
static int |
TOKEN_TYPE |
|
(package private) static java.lang.String |
TYPE_DEFINITIONS |
The resource for the Simple types.
|
(package private) static java.lang.String |
TYPE_MAPPINGS |
The resource for the mapping properties.
|
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 | Description |
---|---|
SimpleTypesFactory() |
Modifier and Type | Method | Description |
---|---|---|
(package private) SimpleType |
createUserSimpleType(Schema schema,
java.lang.String name,
java.lang.String baseName,
java.lang.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) SimpleType |
createUserSimpleType(Schema schema,
java.lang.String name,
SimpleType baseType,
java.lang.String derivation) |
Creates an instance of a class derived from SimpleType, representing the
user type defined by the given name, baseName and derivation method.
|
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.
|
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
static final java.lang.String RESOURCE_LOCATION
static final java.lang.String TYPE_MAPPINGS
static final java.lang.String TYPE_DEFINITIONS
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)
SimpleType createUserSimpleType(Schema schema, java.lang.String name, java.lang.String baseName, java.lang.String derivation, boolean createDeferredSimpleType)
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.SimpleType createUserSimpleType(Schema schema, java.lang.String name, SimpleType baseType, java.lang.String derivation)
schema
- the owning schemaname
- the name of the SimpleTypebaseType
- the base typederivation
- the name of the derivation method (null/""/"list"/"restriction")Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com