org.apache.ws.jaxme.generator.sg.impl
Class SGFactoryImpl

java.lang.Object
  extended byorg.apache.ws.jaxme.generator.sg.impl.SGFactoryImpl
All Implemented Interfaces:
SGFactory

public class SGFactoryImpl
extends java.lang.Object
implements SGFactory


Constructor Summary
SGFactoryImpl(SGFactoryChain o)
           
 
Method Summary
 Generator getGenerator()
          Returns the Generator.
 GroupSG[] getGroups()
          Returns an array of all groups created by the factory.
 GroupSG getGroupSG(XSGroup p0)
          Returns an instance of GroupSG generating the given schema.
 GroupSG getGroupSG(XSGroup p0, Context p1)
          Returns an instance of GroupSG, which is embedded into the given Context.
 SGFactoryChain getHeadOfChain()
           
 ObjectSG[] getObjects()
          Returns an array of all objects created by the factory.
 ObjectSG getObjectSG(XSAny p0, Context p1)
          Returns an instance of ObjectSG generating the given wildcard in the given context.
 ObjectSG getObjectSG(XSElement p0)
          Returns an instance of ObjectSG generating the given element.
 ObjectSG getObjectSG(XSElement p0, Context p1)
          Returns an instance of ObjectSG generating the given element in the given context.
 SchemaSG getSchemaSG()
          Returns the factorys instance of SchemaSG.
 SchemaSG getSchemaSG(XSSchema p0)
          Returns an instance of SchemaSG generating the given schema.
 TypeSG[] getTypes()
          Returns an array of all types created by the factory.
 TypeSG getTypeSG(XSType p0)
          Returns a global instance of TypeSG generating the given type.
 TypeSG getTypeSG(XSType p0, Context p1, XsQName p2)
          Returns a local instance of TypeSG generating the given type within the given Context.
 TypeSG getTypeSG(XSType p0, XsQName p1)
          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 p0, XSEnumeration[] p1)
          Creates a new enumeration facet.
 GroupSG newGroupSG(XSGroup p0)
          Creates a new instance of GroupSG generating the given schema.
 GroupSG newGroupSG(XSGroup p0, Context p1)
          Creates a new instance of GroupSG, which is embedded into the given Context.
 java.lang.Object newObjectSG(XSAny p0)
          Creates a new instance of ObjectSG generating the given wildcard in the given context.
 java.lang.Object newObjectSG(XSElement p0)
          Creates a new instance of ObjectSG generating the given element.
 java.lang.Object newObjectSG(XSElement p0, Context p1)
          Creates a new instance of ObjectSG generating the given element in the given context.
 java.lang.Object newSchemaSG(XSSchema p0)
          Creates a new instance of SchemaSG generating the given schema.
 java.lang.Object newTypeSG(XSType p0)
          Creates a new, global instance of TypeSGChain generating the given type.
 java.lang.Object newTypeSG(XSType p0, Context p1, XsQName p2)
          Creates a new, local instance of TypeSGChain, generating the given type within the given Context.
 java.lang.Object newTypeSG(XSType p0, XsQName p1)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGFactoryImpl

public SGFactoryImpl(SGFactoryChain o)
Method Detail

getGroups

public GroupSG[] getGroups()
Description copied from interface: SGFactory

Returns an array of all groups created by the factory.

Specified by:
getGroups in interface SGFactory

getTypeSG

public TypeSG getTypeSG(XSType p0,
                        XsQName p1)
                 throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns a new instance of TypeSG generating the given type, as if it were a global type with the given name.

Specified by:
getTypeSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getTypeSG

public TypeSG getTypeSG(XSType p0,
                        Context p1,
                        XsQName p2)
                 throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns a local instance of TypeSG generating the given type within the given Context.

Specified by:
getTypeSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getTypeSG

public TypeSG getTypeSG(XSType p0)
                 throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns a global instance of TypeSG generating the given type.

Specified by:
getTypeSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getGroupSG

public GroupSG getGroupSG(XSGroup p0,
                          Context p1)
                   throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns an instance of GroupSG, which is embedded into the given Context.

Specified by:
getGroupSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getGroupSG

public GroupSG getGroupSG(XSGroup p0)
                   throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns an instance of GroupSG generating the given schema.

Specified by:
getGroupSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getObjectSG

public ObjectSG getObjectSG(XSAny p0,
                            Context p1)
                     throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns an instance of ObjectSG generating the given wildcard in the given context.

Specified by:
getObjectSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getObjectSG

public ObjectSG getObjectSG(XSElement p0,
                            Context p1)
                     throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns an instance of ObjectSG generating the given element in the given context.

Specified by:
getObjectSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getObjectSG

public ObjectSG getObjectSG(XSElement p0)
                     throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns an instance of ObjectSG generating the given element.

Specified by:
getObjectSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getTypes

public TypeSG[] getTypes()
Description copied from interface: SGFactory

Returns an array of all types created by the factory.

Specified by:
getTypes in interface SGFactory

getObjects

public ObjectSG[] getObjects()
Description copied from interface: SGFactory

Returns an array of all objects created by the factory.

Specified by:
getObjects in interface SGFactory

getGenerator

public Generator getGenerator()
Description copied from interface: SGFactory

Returns the Generator.

Specified by:
getGenerator in interface SGFactory

newXsObjectFactory

public XsObjectFactory newXsObjectFactory()
                                   throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of XsObjectFactory, used by the parser.

Specified by:
newXsObjectFactory in interface SGFactory
Throws:
org.xml.sax.SAXException

newXSObjectFactory

public XSObjectFactory newXSObjectFactory()
                                   throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of XSObjectFactory, used by the parser.

Specified by:
newXSObjectFactory in interface SGFactory
Throws:
org.xml.sax.SAXException

newSchemaSG

public java.lang.Object newSchemaSG(XSSchema p0)
                             throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of SchemaSG generating the given schema.

Specified by:
newSchemaSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getSchemaSG

public SchemaSG getSchemaSG(XSSchema p0)
                     throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Returns an instance of SchemaSG generating the given schema.

Specified by:
getSchemaSG in interface SGFactory
Throws:
org.xml.sax.SAXException

getSchemaSG

public SchemaSG getSchemaSG()
Description copied from interface: SGFactory

Returns the factorys instance of SchemaSG.

Specified by:
getSchemaSG in interface SGFactory

newObjectSG

public java.lang.Object newObjectSG(XSAny p0)
Description copied from interface: SGFactory

Creates a new instance of ObjectSG generating the given wildcard in the given context.

Specified by:
newObjectSG in interface SGFactory

newObjectSG

public java.lang.Object newObjectSG(XSElement p0,
                                    Context p1)
                             throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of ObjectSG generating the given element in the given context.

Specified by:
newObjectSG in interface SGFactory
Throws:
org.xml.sax.SAXException

newObjectSG

public java.lang.Object newObjectSG(XSElement p0)
                             throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of ObjectSG generating the given element.

Specified by:
newObjectSG in interface SGFactory
Throws:
org.xml.sax.SAXException

newGroupSG

public GroupSG newGroupSG(XSGroup p0)
                   throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of GroupSG generating the given schema.

Specified by:
newGroupSG in interface SGFactory
Throws:
org.xml.sax.SAXException

newGroupSG

public GroupSG newGroupSG(XSGroup p0,
                          Context p1)
                   throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of GroupSG, which is embedded into the given Context.

Specified by:
newGroupSG in interface SGFactory
Throws:
org.xml.sax.SAXException

newTypeSG

public java.lang.Object newTypeSG(XSType p0)
                           throws org.xml.sax.SAXException
Description copied from interface: SGFactory

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.

Specified by:
newTypeSG in interface SGFactory
Throws:
org.xml.sax.SAXException

newTypeSG

public java.lang.Object newTypeSG(XSType p0,
                                  Context p1,
                                  XsQName p2)
                           throws org.xml.sax.SAXException
Description copied from interface: SGFactory

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.

Specified by:
newTypeSG in interface SGFactory
Throws:
org.xml.sax.SAXException

newTypeSG

public java.lang.Object newTypeSG(XSType p0,
                                  XsQName p1)
                           throws org.xml.sax.SAXException
Description copied from interface: SGFactory

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.

Specified by:
newTypeSG in interface SGFactory
Throws:
org.xml.sax.SAXException

newXSParser

public XSParser newXSParser()
                     throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new instance of XSParser.

Specified by:
newXSParser in interface SGFactory
Throws:
org.xml.sax.SAXException

newFacet

public Facet newFacet(XSType p0,
                      XSEnumeration[] p1)
               throws org.xml.sax.SAXException
Description copied from interface: SGFactory

Creates a new enumeration facet.

Specified by:
newFacet in interface SGFactory
Throws:
org.xml.sax.SAXException

init

public void init()
Description copied from interface: SGFactory

Initializes the SGFactory.

Specified by:
init in interface SGFactory

getHeadOfChain

public SGFactoryChain getHeadOfChain()