Top Description Fields Constructors Methods
org.apache.xerces.impl.dv.xs

public Class BaseDVFactory

extends SchemaDVFactory
Class Inheritance
Known Direct Subclasses
org.apache.xerces.impl.dv.xs.FullDVFactory
Imports
org.apache.xerces.impl.dv.SchemaDVFactory, .XSFacets, .XSSimpleType, org.apache.xerces.util.SymbolHash, org.apache.xerces.xs.XSConstants, .XSObjectList

the factory to create/return built-in schema DVs and create user-defined DVs
Authors
Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM
Version
$Id: BaseDVFactory.java 699892 2008-09-28 21:08:27Z mrglavas $

Field Summary

Modifier and TypeField and Description
pack-priv static SymbolHash
pack-priv static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
public XSSimpleType

Returns:

the newly created simple type
createTypeList
(String
name 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
)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.createTypeList.

Create a new simple type which is derived by list from another simple type.
public XSSimpleType

Returns:

the newly created simple type
createTypeRestriction
(String
name 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
)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.createTypeRestriction.

Create a new simple type which is derived by restriction from another simple type.
public XSSimpleType

Returns:

the newly created simple type
createTypeUnion
(String
name 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
)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.createTypeUnion.

Create a new simple type which is derived by union from a list of other simple types.
public XSSimpleType

Returns:

the datatype validator of the given name
getBuiltInType
(String
the name of the datatype
name
)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.getBuiltInType.

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 SymbolHash

Returns:

a hashtable which contains all built-in simple types
getBuiltInTypes
()

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.getBuiltInTypes.

get all built-in simple types, which are stored in a hashtable keyed by the name
Inherited from org.apache.xerces.impl.dv.SchemaDVFactory:
getInstancegetInstance

Field Detail

fBaseTypesback to summary
pack-priv static SymbolHash fBaseTypes
URI_SCHEMAFORSCHEMAback to summary
pack-priv static final String URI_SCHEMAFORSCHEMA

Constructor Detail

BaseDVFactoryback to summary
public BaseDVFactory()

Method Detail

createBuiltInTypesback to summary
pack-priv static void createBuiltInTypes(SymbolHash types)
createTypeListback to summary
public XSSimpleType createTypeList(String name, String targetNamespace, short finalSet, XSSimpleType itemType, XSObjectList annotations)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.createTypeList.

Create a new simple type which is derived by list from another simple type.

Parameters
name:String

name of the new type, could be null

targetNamespace:String

target namespace of the new type, could be null

finalSet:short

value of "final"

itemType:XSSimpleType

item type of the list type

annotations:XSObjectList

set of annotations

Returns:XSSimpleType

the newly created simple type

createTypeRestrictionback to summary
public XSSimpleType createTypeRestriction(String name, String targetNamespace, short finalSet, XSSimpleType base, XSObjectList annotations)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.createTypeRestriction.

Create a new simple type which is derived by restriction from another simple type.

Parameters
name:String

name of the new type, could be null

targetNamespace:String

target namespace of the new type, could be null

finalSet:short

value of "final"

base:XSSimpleType

base type of the new type

annotations:XSObjectList

set of annotations

Returns:XSSimpleType

the newly created simple type

createTypeUnionback to summary
public XSSimpleType createTypeUnion(String name, String targetNamespace, short finalSet, XSSimpleType[] memberTypes, XSObjectList annotations)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.createTypeUnion.

Create a new simple type which is derived by union from a list of other simple types.

Parameters
name:String

name of the new type, could be null

targetNamespace:String

target namespace of the new type, could be null

finalSet:short

value of "final"

memberTypes:XSSimpleType[]

member types of the union type

annotations:XSObjectList

set of annotations

Returns:XSSimpleType

the newly created simple type

getBuiltInTypeback to summary
public XSSimpleType getBuiltInType(String name)

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.getBuiltInType.

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.

Parameters
name:String

the name of the datatype

Returns:XSSimpleType

the datatype validator of the given name

getBuiltInTypesback to summary
public SymbolHash getBuiltInTypes()

Implements abstract org.apache.xerces.impl.dv.SchemaDVFactory.getBuiltInTypes.

get all built-in simple types, which are stored in a hashtable keyed by the name

Returns:SymbolHash

a hashtable which contains all built-in simple types