org.apache.ws.jaxme.generator.sg

Interface SGFactory

Known Implementing Classes:
SGFactoryImpl

public interface SGFactory

Interface of a factory for SG classes.
Author:
Jochen Wiedmann

Method Summary

Generator
getGenerator()
Returns the Generator.
GroupSG
getGroupSG(XSGroup pGroup)
Returns an instance of GroupSG generating the given schema.
GroupSG
getGroupSG(XSGroup pGroup, Context pClassContext)
Returns an instance of GroupSG, which is embedded into the given Context.
GroupSG[]
getGroups()
Returns an array of all groups created by the factory.
ObjectSG
getObjectSG(XSAny pWildcard, Context pContext)
Returns an instance of ObjectSG generating the given wildcard in the given context.
ObjectSG
getObjectSG(XSElement pElement)
Returns an instance of ObjectSG generating the given element.
ObjectSG
getObjectSG(XSElement pElement, Context pContext)
Returns an instance of ObjectSG generating the given element in the given context.
ObjectSG[]
getObjects()
Returns an array of all objects created by the factory.
SchemaSG
getSchemaSG()
Returns the factorys instance of SchemaSG.
SchemaSG
getSchemaSG(XSSchema pSchema)
Returns an instance of SchemaSG generating the given schema.
TypeSG
getTypeSG(XSType pType)
Returns a global instance of TypeSG generating the given type.
TypeSG
getTypeSG(XSType pType, Context pClassContext, XsQName pName)
Returns a local instance of TypeSG generating the given type within the given Context.
TypeSG
getTypeSG(XSType pType, XsQName pName)
Returns a new instance of TypeSG generating the given type, as if it were a global type with the given name.
TypeSG[]
getTypes()
Returns an array of all types created by the factory.
void
init()
Initializes the SGFactory.
Facet
newFacet(XSType pType, XSEnumeration[] pEnumerations)
Creates a new enumeration facet.
GroupSG
newGroupSG(XSGroup pGroup)
Creates a new instance of GroupSG generating the given schema.
GroupSG
newGroupSG(XSGroup pGroup, Context pClassContext)
Creates a new instance of GroupSG, which is embedded into the given Context.
Object
newObjectSG(XSAny any)
Creates a new instance of ObjectSG generating the given wildcard in the given context.
Object
newObjectSG(XSElement pElement)
Creates a new instance of ObjectSG generating the given element.
Object
newObjectSG(XSElement pElement, Context pContext)
Creates a new instance of ObjectSG generating the given element in the given context.
Object
newSchemaSG(XSSchema pSchema)
Creates a new instance of SchemaSG generating the given schema.
Object
newTypeSG(XSType pType)
Creates a new, global instance of TypeSGChain generating the given type.
Object
newTypeSG(XSType pType, Context pClassContext, XsQName pName)
Creates a new, local instance of TypeSGChain, generating the given type within the given Context.
Object
newTypeSG(XSType pType, XsQName pName)
Creates a new, local instance of TypeSGChain, as if it were a global type with the given name.
XSObjectFactory
newXSObjectFactory()
Creates a new instance of XSObjectFactory, used by the parser.
XSParser
newXSParser()
Creates a new instance of XSParser.
XsObjectFactory
newXsObjectFactory()
Creates a new instance of XsObjectFactory, used by the parser.

Method Details

getGenerator

public Generator getGenerator()
Returns the Generator.

getGroupSG

public GroupSG getGroupSG(XSGroup pGroup)
            throws SAXException
Returns an instance of GroupSG generating the given schema.

getGroupSG

public GroupSG getGroupSG(XSGroup pGroup,
                          Context pClassContext)
            throws SAXException
Returns an instance of GroupSG, which is embedded into the given Context.

getGroups

public GroupSG[] getGroups()
Returns an array of all groups created by the factory.

getObjectSG

public ObjectSG getObjectSG(XSAny pWildcard,
                            Context pContext)
            throws SAXException
Returns an instance of ObjectSG generating the given wildcard in the given context.

getObjectSG

public ObjectSG getObjectSG(XSElement pElement)
            throws SAXException
Returns an instance of ObjectSG generating the given element.

getObjectSG

public ObjectSG getObjectSG(XSElement pElement,
                            Context pContext)
            throws SAXException
Returns an instance of ObjectSG generating the given element in the given context.

getObjects

public ObjectSG[] getObjects()
Returns an array of all objects created by the factory.

getSchemaSG

public SchemaSG getSchemaSG()
Returns the factorys instance of SchemaSG.

getSchemaSG

public SchemaSG getSchemaSG(XSSchema pSchema)
            throws SAXException
Returns an instance of SchemaSG generating the given schema.

getTypeSG

public TypeSG getTypeSG(XSType pType)
            throws SAXException
Returns a global instance of TypeSG generating the given type.

getTypeSG

public TypeSG getTypeSG(XSType pType,
                        Context pClassContext,
                        XsQName pName)
            throws SAXException
Returns a local instance of TypeSG generating the given type within the given Context.

getTypeSG

public TypeSG getTypeSG(XSType pType,
                        XsQName pName)
            throws SAXException
Returns a new instance of TypeSG generating the given type, as if it were a global type with the given name.

getTypes

public TypeSG[] getTypes()
Returns an array of all types created by the factory.

init

public void init()

newFacet

public Facet newFacet(XSType pType,
                      XSEnumeration[] pEnumerations)
            throws SAXException
Creates a new enumeration facet.

newGroupSG

public GroupSG newGroupSG(XSGroup pGroup)
            throws SAXException
Creates a new instance of GroupSG generating the given schema.

newGroupSG

public GroupSG newGroupSG(XSGroup pGroup,
                          Context pClassContext)
            throws SAXException
Creates a new instance of GroupSG, which is embedded into the given Context.

newObjectSG

public Object newObjectSG(XSAny any)
Creates a new instance of ObjectSG generating the given wildcard in the given context.

newObjectSG

public Object newObjectSG(XSElement pElement)
            throws SAXException
Creates a new instance of ObjectSG generating the given element.

newObjectSG

public Object newObjectSG(XSElement pElement,
                          Context pContext)
            throws SAXException
Creates a new instance of ObjectSG generating the given element in the given context.

newSchemaSG

public Object newSchemaSG(XSSchema pSchema)
            throws SAXException
Creates a new instance of SchemaSG generating the given schema.

newTypeSG

public Object newTypeSG(XSType pType)
            throws SAXException
Creates a new, global instance of TypeSGChain generating the given type.

Implementation note: The type TypeSGChain must not be exposed in the interface, because the interface class is used to generate this type. In other words, this interface must be compilable without the TypeSGChain interface.


newTypeSG

public Object newTypeSG(XSType pType,
                        Context pClassContext,
                        XsQName pName)
            throws SAXException
Creates a new, local instance of TypeSGChain, generating the given type within the given Context.

Implementation note: The type TypeSGChain must not be exposed in the interface, because the interface class is used to generate this type. In other words, this interface must be compilable without the TypeSGChain interface.


newTypeSG

public Object newTypeSG(XSType pType,
                        XsQName pName)
            throws SAXException
Creates a new, local instance of TypeSGChain, as if it were a global type with the given name.

Implementation note: The type TypeSGChain must not be exposed in the interface, because the interface class is used to generate this type. In other words, this interface must be compilable without the TypeSGChain interface.


newXSObjectFactory

public XSObjectFactory newXSObjectFactory()
            throws SAXException
Creates a new instance of XSObjectFactory, used by the parser.

newXSParser

public XSParser newXSParser()
            throws SAXException
Creates a new instance of XSParser.

newXsObjectFactory

public XsObjectFactory newXsObjectFactory()
            throws SAXException
Creates a new instance of XsObjectFactory, used by the parser.