org.apache.ws.jaxme.generator.sg
public interface SGFactory
Interface of a factory for SG classes.
Method Summary | |
---|---|
Generator | getGenerator() Returns the {@link org.apache.ws.jaxme.generator.Generator}. |
GroupSG[] | getGroups() Returns an array of all groups created by the factory. |
GroupSG | getGroupSG(XSGroup pGroup) Returns an instance of {@link GroupSG} generating the given schema. |
GroupSG | getGroupSG(XSGroup pGroup, Context pClassContext) Returns an instance of {@link GroupSG}, which is embedded into the given {@link Context}. |
ObjectSG[] | getObjects() Returns an array of all objects created by the factory. |
ObjectSG | getObjectSG(XSElement pElement) Returns an instance of {@link ObjectSG} generating the given element. |
ObjectSG | getObjectSG(XSElement pElement, Context pContext) Returns an instance of {@link ObjectSG} generating the given element in the given context. |
ObjectSG | getObjectSG(XSAny pWildcard, Context pContext) Returns an instance of {@link ObjectSG} generating the given wildcard in the given context. |
SchemaSG | getSchemaSG(XSSchema pSchema) Returns an instance of {@link SchemaSG} generating the given schema. |
SchemaSG | getSchemaSG() Returns the factorys instance of {@link SchemaSG}. |
TypeSG[] | getTypes() Returns an array of all types created by the factory. |
TypeSG | getTypeSG(XSType pType) Returns a global instance of {@link TypeSG} generating the given type. |
TypeSG | getTypeSG(XSType pType, Context pClassContext, XsQName pName) Returns a local instance of {@link TypeSG} generating the given type within the given {@link Context}. |
TypeSG | getTypeSG(XSType pType, XsQName pName) Returns a new instance of {@link TypeSG} generating the given type, as if it were a global type with the given name. |
void | init() Initializes the {@link SGFactory}. |
Facet | newFacet(XSType pType, XSEnumeration[] pEnumerations) Creates a new enumeration facet. |
GroupSG | newGroupSG(XSGroup pGroup) Creates a new instance of {@link GroupSG} generating the given schema. |
GroupSG | newGroupSG(XSGroup pGroup, Context pClassContext) Creates a new instance of {@link GroupSG}, which is embedded into the given {@link Context}. |
Object | newObjectSG(XSElement pElement) Creates a new instance of {@link ObjectSG} generating the given element. |
Object | newObjectSG(XSElement pElement, Context pContext) Creates a new instance of {@link ObjectSG} generating the given element in the given context. |
Object | newObjectSG(XSAny any) Creates a new instance of {@link ObjectSG} generating the given wildcard in the given context. |
Object | newSchemaSG(XSSchema pSchema) Creates a new instance of {@link SchemaSG} generating the given schema. |
Object | newTypeSG(XSType pType) Creates a new, global instance of {@link org.apache.ws.jaxme.generator.sg.TypeSGChain} generating the given type. Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.TypeSGChain} must not be exposed in the interface, because the interface class is used to generate this type. |
Object | newTypeSG(XSType pType, Context pClassContext, XsQName pName) Creates a new, local instance of {@link org.apache.ws.jaxme.generator.sg.TypeSGChain}, generating the given type within the given {@link Context}. |
Object | newTypeSG(XSType pType, XsQName pName) Creates a new, local instance of {@link org.apache.ws.jaxme.generator.sg.TypeSGChain}, as if it were a global type with the given name. Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.TypeSGChain} must not be exposed in the interface, because the interface class is used to generate this type. |
XsObjectFactory | newXsObjectFactory() Creates a new instance of {@link org.apache.ws.jaxme.xs.xml.XsObjectFactory}, used by the parser. |
XSObjectFactory | newXSObjectFactory() Creates a new instance of {@link org.apache.ws.jaxme.xs.XSObjectFactory}, used by the parser. |
XSParser | newXSParser() Creates a new instance of {@link XSParser}. |
Returns the {@link org.apache.ws.jaxme.generator.Generator}.
Returns an array of all groups created by the factory.
Returns an instance of {@link GroupSG} generating the given schema.
Returns an instance of {@link GroupSG}, which is embedded into the given {@link Context}.
Returns an array of all objects created by the factory.
Returns an instance of {@link ObjectSG} generating the given element.
Returns an instance of {@link ObjectSG} generating the given element in the given context.
Returns an instance of {@link ObjectSG} generating the given wildcard in the given context.
Returns an instance of {@link SchemaSG} generating the given schema.
Returns the factorys instance of {@link SchemaSG}.
Throws: IllegalStateException The factory has not yet created an instance of SchemaSG. In other words, the methods {@link #newSchemaSG(XSSchema)} and {@link #getSchemaSG(XSSchema)} have not yet been invoked.
Returns an array of all types created by the factory.
Returns a global instance of {@link TypeSG} generating the given type.
Returns a local instance of {@link TypeSG} generating the given type within the given {@link Context}.
Returns a new instance of {@link TypeSG} generating the given type, as if it were a global type with the given name.
Initializes the {@link SGFactory}.
Creates a new enumeration facet.
Creates a new instance of {@link GroupSG} generating the given schema.
Creates a new instance of {@link GroupSG}, which is embedded into the given {@link Context}.
Creates a new instance of {@link ObjectSG} generating the given element.
Creates a new instance of {@link ObjectSG} generating the given element in the given context.
Creates a new instance of {@link ObjectSG} generating the given wildcard in the given context.
Creates a new instance of {@link SchemaSG} generating the given schema.
Creates a new, global instance of {@link org.apache.ws.jaxme.generator.sg.TypeSGChain} generating the given type.
Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.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 {@link org.apache.ws.jaxme.generator.sg.TypeSGChain} interface.
Creates a new, local instance of {@link org.apache.ws.jaxme.generator.sg.TypeSGChain}, generating the given type within the given {@link Context}.
Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.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 {@link org.apache.ws.jaxme.generator.sg.TypeSGChain} interface.
Creates a new, local instance of {@link org.apache.ws.jaxme.generator.sg.TypeSGChain}, as if it were a global type with the given name.
Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.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 {@link org.apache.ws.jaxme.generator.sg.TypeSGChain} interface.
Creates a new instance of {@link org.apache.ws.jaxme.xs.xml.XsObjectFactory}, used by the parser.
Creates a new instance of {@link org.apache.ws.jaxme.xs.XSObjectFactory}, used by the parser.
Creates a new instance of {@link XSParser}.