1. to get the instance of specified SchemaDVFactory implementation
2. to create/return built-in schema simple types
3. to create user defined simple types.
Implementations of this abstract class can be used to get built-in simple types and create user-defined simle types.
The implementation should store the built-in datatypes in static data, so that they can be shared by multiple parser instance, and multiple threads.
| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract XSSimpleType | Returns: the newly created simple typename of the new type, could be null name, String target namespace of the new type, could be null targetNamespace, short value of "final" finalSet, XSSimpleType item type of the list type itemType, XSObjectList set of annotations annotations)Create a new simple type which is derived by list from another simple type. |
| public abstract XSSimpleType | Returns: the newly created simple typename of the new type, could be null name, String target namespace of the new type, could be null targetNamespace, short value of "final" finalSet, XSSimpleType base type of the new type base, XSObjectList set of annotations annotations)Create a new simple type which is derived by restriction from another simple type. |
| public abstract XSSimpleType | Returns: the newly created simple typename of the new type, could be null name, String target namespace of the new type, could be null targetNamespace, short value of "final" finalSet, XSSimpleType[] member types of the union type memberTypes, XSObjectList set of annotations annotations)Create a new simple type which is derived by union from a list of other simple types. |
| public abstract XSSimpleType | Returns: the datatype validator of the given namethe name of the datatype name)Get a built-in simple type of the given name Revisit its still not decided within the Schema WG how to define the ur-types and if all simple types should be derived from a complex type, so as of now we ignore the fact that anySimpleType is derived from anyType, and pass 'null' as the base of anySimpleType. |
| public abstract SymbolHash | Returns: a SymbolHash which contains all built-in simple typesget all built-in simple types, which are stored in a SymbolHash keyed by the name |
| public static final SchemaDVFactory | Returns: an instance of SchemaDVFactory implementationGet a default instance of SchemaDVFactory implementation. |
| public static final SchemaDVFactory | Returns: an instance of SchemaDVFactory implementationname of the schema factory implementation to instantiate. factoryClass)Get an instance of SchemaDVFactory implementation. |
| DEFAULT_FACTORY_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_FACTORY_CLASS | |
| SchemaDVFactory | back to summary |
|---|---|
| protected SchemaDVFactory() | |
| createTypeList | back to summary |
|---|---|
| public abstract XSSimpleType createTypeList(String name, String targetNamespace, short finalSet, XSSimpleType itemType, XSObjectList annotations) Create a new simple type which is derived by list from another simple type.
| |
| createTypeRestriction | back to summary |
|---|---|
| public abstract XSSimpleType createTypeRestriction(String name, String targetNamespace, short finalSet, XSSimpleType base, XSObjectList annotations) Create a new simple type which is derived by restriction from another simple type.
| |
| createTypeUnion | back to summary |
|---|---|
| public abstract XSSimpleType createTypeUnion(String name, String targetNamespace, short finalSet, XSSimpleType[] memberTypes, XSObjectList annotations) Create a new simple type which is derived by union from a list of other simple types.
| |
| getBuiltInType | back to summary |
|---|---|
| public abstract XSSimpleType getBuiltInType(String name) Get a built-in simple type of the given name Revisit its still not decided within the Schema WG how to define the ur-types and if all simple types should be derived from a complex type, so as of now we ignore the fact that anySimpleType is derived from anyType, and pass 'null' as the base of anySimpleType. It needs to be changed as per the decision taken.
| |
| getBuiltInTypes | back to summary |
|---|---|
| public abstract SymbolHash getBuiltInTypes() get all built-in simple types, which are stored in a SymbolHash keyed by the name
| |
| getInstance | back to summary |
|---|---|
| public static final SchemaDVFactory getInstance() throws DVFactoryException Get a default instance of SchemaDVFactory implementation.
| |
| getInstance | back to summary |
|---|---|
| public static final SchemaDVFactory getInstance(String factoryClass) throws DVFactoryException Get an instance of SchemaDVFactory implementation.
| |