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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.GroupSGImpl
All Implemented Interfaces:
GroupSG, SGItem

public class GroupSGImpl
extends java.lang.Object
implements GroupSG


Constructor Summary
GroupSGImpl(GroupSGChain o)
           
 
Method Summary
 void generate()
          Generates the groups sources.
 void generateProperties(JavaSource p0)
          Generates the groups set and get methods.
 void generateXMLHandlersElements(JavaSource p0, DirectAccessible p1)
          Generates the XML handlers methods for reading child elements.
 void generateXMLImplementationSubclasses(JavaSource p0)
          Generates the XML implementations subclasses.
 void generateXMLInterfaceSubclasses(JavaSource p0)
          Generates the XML interfaces subclasses.
 void generateXMLSerializersElements(JavaSource p0)
          Generates the XML serializers methods that create child elements.
 Context getClassContext()
          Returns the groups Context.
 SGFactory getFactory()
          Returns the factory that created this item.
 GroupSGChain getHeadOfChain()
           
 org.xml.sax.Locator getLocator()
          Returns the items location in the schema; useful for error messages.
 ParticleSG[] getParticles()
          Returns the groups particles.
 SchemaSG getSchema()
          Returns the items schema.
 JavaSource getXMLImplementation()
          Generates the groups implementation.
 JavaSource getXMLInterface()
          Generates the groups interface.
 void init()
          Initializes the item.
 boolean isAll()
          Returns whether the groups compositor is "all".
 boolean isChoice()
          Returns whether the groups compositor is "choice".
 boolean isGlobal()
          Returns whether the group is global.
 boolean isSequence()
          Returns whether the groups compositor is "sequence".
 java.lang.Object newParticleSG(XSParticle p0)
          Creates a new instance of ParticleSGChain generating the given particle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupSGImpl

public GroupSGImpl(GroupSGChain o)
Method Detail

getClassContext

public Context getClassContext()
                        throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Returns the groups Context.

Specified by:
getClassContext in interface GroupSG
Throws:
org.xml.sax.SAXException

generate

public void generate()
              throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the groups sources.

Specified by:
generate in interface GroupSG
Throws:
org.xml.sax.SAXException

getXMLInterface

public JavaSource getXMLInterface()
                           throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the groups interface.

Specified by:
getXMLInterface in interface GroupSG
Throws:
org.xml.sax.SAXException

getXMLImplementation

public JavaSource getXMLImplementation()
                                throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the groups implementation.

Specified by:
getXMLImplementation in interface GroupSG
Throws:
org.xml.sax.SAXException

isGlobal

public boolean isGlobal()
Description copied from interface: GroupSG

Returns whether the group is global.

Specified by:
isGlobal in interface GroupSG

isAll

public boolean isAll()
Description copied from interface: GroupSG

Returns whether the groups compositor is "all".

Specified by:
isAll in interface GroupSG

isChoice

public boolean isChoice()
Description copied from interface: GroupSG

Returns whether the groups compositor is "choice".

Specified by:
isChoice in interface GroupSG

isSequence

public boolean isSequence()
Description copied from interface: GroupSG

Returns whether the groups compositor is "sequence".

Specified by:
isSequence in interface GroupSG

generateProperties

public void generateProperties(JavaSource p0)
                        throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the groups set and get methods.

Specified by:
generateProperties in interface GroupSG
Throws:
org.xml.sax.SAXException

generateXMLInterfaceSubclasses

public void generateXMLInterfaceSubclasses(JavaSource p0)
                                    throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the XML interfaces subclasses.

Specified by:
generateXMLInterfaceSubclasses in interface GroupSG
Throws:
org.xml.sax.SAXException

generateXMLImplementationSubclasses

public void generateXMLImplementationSubclasses(JavaSource p0)
                                         throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the XML implementations subclasses.

Specified by:
generateXMLImplementationSubclasses in interface GroupSG
Throws:
org.xml.sax.SAXException

generateXMLHandlersElements

public void generateXMLHandlersElements(JavaSource p0,
                                        DirectAccessible p1)
                                 throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the XML handlers methods for reading child elements.

Specified by:
generateXMLHandlersElements in interface GroupSG
Throws:
org.xml.sax.SAXException

generateXMLSerializersElements

public void generateXMLSerializersElements(JavaSource p0)
                                    throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Generates the XML serializers methods that create child elements.

Specified by:
generateXMLSerializersElements in interface GroupSG
Throws:
org.xml.sax.SAXException

getParticles

public ParticleSG[] getParticles()
Description copied from interface: GroupSG

Returns the groups particles.

Specified by:
getParticles in interface GroupSG

newParticleSG

public java.lang.Object newParticleSG(XSParticle p0)
                               throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Creates a new instance of ParticleSGChain generating the given particle.

Implementation note: The type ParticleSGChain 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 ParticleSGChain interface.

Specified by:
newParticleSG in interface GroupSG
Throws:
org.xml.sax.SAXException

getFactory

public SGFactory getFactory()
Description copied from interface: SGItem

Returns the factory that created this item.

Specified by:
getFactory in interface SGItem

init

public void init()
          throws org.xml.sax.SAXException
Description copied from interface: SGItem

Initializes the item.

Specified by:
init in interface SGItem
Throws:
org.xml.sax.SAXException

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: SGItem

Returns the items location in the schema; useful for error messages.

Specified by:
getLocator in interface SGItem

getSchema

public SchemaSG getSchema()
Description copied from interface: SGItem

Returns the items schema.

Specified by:
getSchema in interface SGItem

getHeadOfChain

public GroupSGChain getHeadOfChain()