| Constructor and Description |
|---|
SGFactoryImpl(SGFactoryChain o) |
| Modifier and Type | Method and Description |
|---|---|
Generator |
getGenerator()
Returns the
Generator. |
GroupSG[] |
getGroups()
Returns an array of all groups created by the factory.
|
GroupSG |
getGroupSG(XSGroup pGroup)
Returns an instance of
GroupSG generating the
given schema. |
GroupSG |
getGroupSG(XSGroup pGroup,
Context pClassContext)
|
SGFactoryChain |
getHeadOfChain() |
ObjectSG[] |
getObjects()
Returns an array of all objects 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. |
SchemaSG |
getSchemaSG()
Returns the factorys instance of
SchemaSG. |
SchemaSG |
getSchemaSG(XSSchema pSchema)
Returns an instance of
SchemaSG generating the
given schema. |
TypeSG[] |
getTypes()
Returns an array of all types created by the factory.
|
TypeSG |
getTypeSG(XSType pType,
Context pClassContext,
XsQName pName,
JAXBProperty.BaseType pBaseType)
|
TypeSG |
getTypeSG(XSType pType,
JAXBProperty.BaseType pBaseType)
Returns a global instance of
TypeSG generating
the given type. |
TypeSG |
getTypeSG(XSType pType,
XsQName pName,
JAXBProperty.BaseType pBaseType)
Returns a new instance of
TypeSG generating
the given type, as if it were a global type with the
given name. |
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)
|
java.lang.Object |
newObjectSG(XSAny any)
Creates a new instance of
ObjectSG generating the given
wildcard in the given context. |
java.lang.Object |
newObjectSG(XSElement pElement)
Creates a new instance of
ObjectSG generating the
given element. |
java.lang.Object |
newObjectSG(XSElement pElement,
Context pContext)
Creates a new instance of
ObjectSG generating the
given element in the given context. |
java.lang.Object |
newSchemaSG(XSSchema pSchema)
Creates a new instance of
SchemaSG generating the
given schema. |
java.lang.Object |
newTypeSG(XSType pType,
Context pClassContext,
XsQName pName,
JAXBProperty.BaseType pBaseType)
Creates a new, local instance of
TypeSGChain,
generating the given type within the given Context. |
java.lang.Object |
newTypeSG(XSType pType,
JAXBProperty.BaseType pBaseType)
Creates a new, global instance of
TypeSGChain
generating the given type. |
java.lang.Object |
newTypeSG(XSType pType,
XsQName pName,
JAXBProperty.BaseType pBaseType)
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. |
XSObjectFactory |
newXSObjectFactory()
Creates a new instance of
XSObjectFactory,
used by the parser. |
XSParser |
newXSParser()
Creates a new instance of
XSParser. |
public SGFactoryImpl(SGFactoryChain o)
public Generator getGenerator()
SGFactoryReturns the Generator.
getGenerator in interface SGFactorypublic XsObjectFactory newXsObjectFactory() throws org.xml.sax.SAXException
SGFactoryCreates a new instance of XsObjectFactory,
used by the parser.
newXsObjectFactory in interface SGFactoryorg.xml.sax.SAXExceptionpublic XSObjectFactory newXSObjectFactory() throws org.xml.sax.SAXException
SGFactoryCreates a new instance of XSObjectFactory,
used by the parser.
newXSObjectFactory in interface SGFactoryorg.xml.sax.SAXExceptionpublic java.lang.Object newSchemaSG(XSSchema pSchema) throws org.xml.sax.SAXException
SGFactoryCreates a new instance of SchemaSG generating the
given schema.
newSchemaSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic SchemaSG getSchemaSG(XSSchema pSchema) throws org.xml.sax.SAXException
SGFactoryReturns an instance of SchemaSG generating the
given schema.
getSchemaSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic SchemaSG getSchemaSG()
SGFactoryReturns the factorys instance of SchemaSG.
getSchemaSG in interface SGFactorypublic java.lang.Object newObjectSG(XSElement pElement) throws org.xml.sax.SAXException
SGFactoryCreates a new instance of ObjectSG generating the
given element.
newObjectSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic ObjectSG getObjectSG(XSElement pElement) throws org.xml.sax.SAXException
SGFactoryReturns an instance of ObjectSG generating the
given element.
getObjectSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic java.lang.Object newObjectSG(XSElement pElement, Context pContext) throws org.xml.sax.SAXException
SGFactoryCreates a new instance of ObjectSG generating the
given element in the given context.
newObjectSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic ObjectSG getObjectSG(XSElement pElement, Context pContext) throws org.xml.sax.SAXException
SGFactoryReturns an instance of ObjectSG generating the given
element in the given context.
getObjectSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic java.lang.Object newObjectSG(XSAny any)
SGFactoryCreates a new instance of ObjectSG generating the given
wildcard in the given context.
newObjectSG in interface SGFactorypublic ObjectSG getObjectSG(XSAny pWildcard, Context pContext) throws org.xml.sax.SAXException
SGFactoryReturns an instance of ObjectSG generating the given
wildcard in the given context.
getObjectSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic GroupSG newGroupSG(XSGroup pGroup) throws org.xml.sax.SAXException
SGFactoryCreates a new instance of GroupSG generating the
given schema.
newGroupSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic GroupSG getGroupSG(XSGroup pGroup) throws org.xml.sax.SAXException
SGFactoryReturns an instance of GroupSG generating the
given schema.
getGroupSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic GroupSG newGroupSG(XSGroup pGroup, Context pClassContext) throws org.xml.sax.SAXException
SGFactorynewGroupSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic GroupSG getGroupSG(XSGroup pGroup, Context pClassContext) throws org.xml.sax.SAXException
SGFactorygetGroupSG in interface SGFactoryorg.xml.sax.SAXExceptionpublic java.lang.Object newTypeSG(XSType pType, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
SGFactoryCreates 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.
public TypeSG getTypeSG(XSType pType, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
SGFactoryReturns a global instance of TypeSG generating
the given type.
public java.lang.Object newTypeSG(XSType pType, Context pClassContext, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
SGFactoryCreates 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.
public TypeSG getTypeSG(XSType pType, Context pClassContext, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
SGFactorypublic java.lang.Object newTypeSG(XSType pType, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
SGFactoryCreates 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.
public TypeSG getTypeSG(XSType pType, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
SGFactoryReturns a new instance of TypeSG generating
the given type, as if it were a global type with the
given name.
public XSParser newXSParser() throws org.xml.sax.SAXException
SGFactoryCreates a new instance of XSParser.
newXSParser in interface SGFactoryorg.xml.sax.SAXExceptionpublic Facet newFacet(XSType pType, XSEnumeration[] pEnumerations) throws org.xml.sax.SAXException
SGFactoryCreates a new enumeration facet.
public GroupSG[] getGroups()
SGFactoryReturns an array of all groups created by the factory.
public TypeSG[] getTypes()
SGFactoryReturns an array of all types created by the factory.
public ObjectSG[] getObjects()
SGFactoryReturns an array of all objects created by the factory.
getObjects in interface SGFactorypublic SGFactoryChain getHeadOfChain()