Class BaseSchemaDVFactory
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.SchemaDVFactory
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.xs.BaseSchemaDVFactory
-
- Direct Known Subclasses:
ExtendedSchemaDVFactoryImpl
,SchemaDVFactoryImpl
public abstract class BaseSchemaDVFactory extends SchemaDVFactory
the base factory to create/return built-in schema DVs and create user-defined DVs- Version:
- $Id$
- Author:
- Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM, Khaled Noaman, IBM
-
-
Field Summary
Fields Modifier and Type Field Description protected XSDeclarationPool
fDeclPool
-
Constructor Summary
Constructors Constructor Description BaseSchemaDVFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
createBuiltInTypes(SymbolHash builtInTypes, XSSimpleTypeDecl baseAtomicType)
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.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.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.XSSimpleTypeDecl
newXSSimpleTypeDecl()
Implementation internalvoid
setDeclPool(XSDeclarationPool declPool)
-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.SchemaDVFactory
getBuiltInType, getBuiltInTypes, getInstance, getInstance
-
-
-
-
Field Detail
-
fDeclPool
protected XSDeclarationPool fDeclPool
-
-
Method Detail
-
createBuiltInTypes
protected static void createBuiltInTypes(SymbolHash builtInTypes, XSSimpleTypeDecl baseAtomicType)
-
createTypeRestriction
public 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.- Specified by:
createTypeRestriction
in classSchemaDVFactory
- Parameters:
name
- name of the new type, could be nulltargetNamespace
- target namespace of the new type, could be nullfinalSet
- value of "final"base
- base type of the new typeannotations
- set of annotations- Returns:
- the newly created simple type
-
createTypeList
public 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.- Specified by:
createTypeList
in classSchemaDVFactory
- Parameters:
name
- name of the new type, could be nulltargetNamespace
- target namespace of the new type, could be nullfinalSet
- value of "final"itemType
- item type of the list typeannotations
- set of annotations- Returns:
- the newly created simple type
-
createTypeUnion
public 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.- Specified by:
createTypeUnion
in classSchemaDVFactory
- Parameters:
name
- name of the new type, could be nulltargetNamespace
- target namespace of the new type, could be nullfinalSet
- value of "final"memberTypes
- member types of the union typeannotations
- set of annotations- Returns:
- the newly created simple type
-
setDeclPool
public void setDeclPool(XSDeclarationPool declPool)
-
newXSSimpleTypeDecl
public XSSimpleTypeDecl newXSSimpleTypeDecl()
Implementation internal
-
-