org.apache.ws.jaxme.generator.sg
Interface GroupSG

All Superinterfaces:
SGItem
All Known Implementing Classes:
GroupSGImpl

public interface GroupSG
extends SGItem

Interface of a source generator for model groups.

Author:
Jochen Wiedmann

Method Summary
 void generate()
          Generates the groups sources.
 void generateProperties(JavaSource pSource)
          Generates the groups set and get methods.
 void generateXMLHandlersElements(JavaSource pSource, DirectAccessible pLevelVar)
          Generates the XML handlers methods for reading child elements.
 void generateXMLImplementationSubclasses(JavaSource pSource)
          Generates the XML implementations subclasses.
 void generateXMLInterfaceSubclasses(JavaSource pSource)
          Generates the XML interfaces subclasses.
 void generateXMLSerializersElements(JavaSource pSource)
          Generates the XML serializers methods that create child elements.
 Context getClassContext()
          Returns the groups Context.
 ParticleSG[] getParticles()
          Returns the groups particles.
 JavaSource getXMLImplementation()
          Generates the groups implementation.
 JavaSource getXMLInterface()
          Generates the groups interface.
 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 pParticle)
          Creates a new instance of ParticleSGChain generating the given particle.
 
Methods inherited from interface org.apache.ws.jaxme.generator.sg.SGItem
getFactory, getLocator, getSchema, init
 

Method Detail

isGlobal

public boolean isGlobal()

Returns whether the group is global.


isAll

public boolean isAll()

Returns whether the groups compositor is "all".


isChoice

public boolean isChoice()

Returns whether the groups compositor is "choice".


isSequence

public boolean isSequence()

Returns whether the groups compositor is "sequence".


getClassContext

public Context getClassContext()
                        throws org.xml.sax.SAXException

Returns the groups Context.

Throws:
org.xml.sax.SAXException

getXMLInterface

public JavaSource getXMLInterface()
                           throws org.xml.sax.SAXException

Generates the groups interface.

Throws:
org.xml.sax.SAXException

getXMLImplementation

public JavaSource getXMLImplementation()
                                throws org.xml.sax.SAXException

Generates the groups implementation.

Throws:
org.xml.sax.SAXException

generateProperties

public void generateProperties(JavaSource pSource)
                        throws org.xml.sax.SAXException

Generates the groups set and get methods.

Throws:
org.xml.sax.SAXException

generateXMLInterfaceSubclasses

public void generateXMLInterfaceSubclasses(JavaSource pSource)
                                    throws org.xml.sax.SAXException

Generates the XML interfaces subclasses.

Throws:
org.xml.sax.SAXException

generateXMLImplementationSubclasses

public void generateXMLImplementationSubclasses(JavaSource pSource)
                                         throws org.xml.sax.SAXException

Generates the XML implementations subclasses.

Throws:
org.xml.sax.SAXException

generateXMLHandlersElements

public void generateXMLHandlersElements(JavaSource pSource,
                                        DirectAccessible pLevelVar)
                                 throws org.xml.sax.SAXException

Generates the XML handlers methods for reading child elements.

Throws:
org.xml.sax.SAXException

generateXMLSerializersElements

public void generateXMLSerializersElements(JavaSource pSource)
                                    throws org.xml.sax.SAXException

Generates the XML serializers methods that create child elements.

Throws:
org.xml.sax.SAXException

generate

public void generate()
              throws org.xml.sax.SAXException

Generates the groups sources.

Throws:
org.xml.sax.SAXException

getParticles

public ParticleSG[] getParticles()

Returns the groups particles.


newParticleSG

public java.lang.Object newParticleSG(XSParticle pParticle)
                               throws org.xml.sax.SAXException

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.

Throws:
org.xml.sax.SAXException