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.


Method Summary
 Context getClassContext()
          Returns the groups Context.
 XsQName getName()
          If the group is global: Returns the groups name.
 ParticleSG[] getParticles()
          Returns the groups particles.
 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

boolean isGlobal()

Returns whether the group is global.


getName

XsQName getName()
If the group is global: Returns the groups name.

Throws:
java.lang.IllegalStateException - The group isn't global.
See Also:
isGlobal()

isAll

boolean isAll()

Returns whether the groups compositor is "all".


isChoice

boolean isChoice()

Returns whether the groups compositor is "choice".


isSequence

boolean isSequence()

Returns whether the groups compositor is "sequence".


getClassContext

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

Returns the groups Context.

Throws:
org.xml.sax.SAXException

getParticles

ParticleSG[] getParticles()
                          throws org.xml.sax.SAXException

Returns the groups particles.

Throws:
org.xml.sax.SAXException

newParticleSG

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