org.exolab.castor.xml.schema
public class SimpleTypesFactory extends Object
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:35 $
Field Summary | |
---|---|
static int | ANYSIMPLETYPE_TYPE |
static int | ANYURI_TYPE |
static int | BASE64BINARY_TYPE |
static int | BOOLEAN_TYPE |
static int | BYTE_TYPE |
static int | DATETIME_TYPE |
static int | DATE_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 | GMONTHDAY_TYPE |
static int | GMONTH_TYPE |
static int | GYEARMONTH_TYPE |
static int | GYEAR_TYPE |
static int | HEXBINARY_TYPE |
static int | IDREFS_TYPE |
static int | IDREF_TYPE |
static int | ID_TYPE |
static int | INTEGER_TYPE |
static int | INT_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 | NMTOKENS_TYPE |
static int | NMTOKEN_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 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 |
static String | TYPE_DEFINITIONS
The resource for the Simple types
|
static 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
|
Method Summary | |
---|---|
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.
|
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.
|
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. |
String | getBuiltInTypeName(int builtInTypeCode)
Gets a built in type's name given its code. |
static boolean | isBuiltInType(int codeType)
Tells if a type code corresponds to an xml schema built in type |
static boolean | isPrimitiveType(int codeType)
Tells if a type code corresponds to an xml schema (built in) primitive type |
Parameters: schema the owning schema name the name of the SimpleType baseName the name of the SimpleType's base type derivation the name of the derivation method (null/""/"list"/"restriction") createDeferredSimpleType should the type be deferred if it can't be created.
Returns: the new SimpleType, or null if its parent could not be found.
Parameters: schema the owning schema name the name of the SimpleType baseType the base type derivation the name of the derivation method (null/""/"list"/"restriction")
Returns: the new SimpleType, or null if its parent could not be found.