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

Class GroupSGImpl

Implemented Interfaces:
GroupSG, SGItem

public class GroupSGImpl
extends java.lang.Object
implements GroupSG, SGItem

Constructor Summary

GroupSGImpl(GroupSGChain o)

Method Summary

Context
getClassContext()
Returns the groups Context.
SGFactory
getFactory()
Returns the factory that created this item.
GroupSGChain
getHeadOfChain()
Locator
getLocator()
Returns the items location in the schema; useful for error messages.
XsQName
getName()
If the group is global: Returns the groups name.
ParticleSG[]
getParticles()
Returns the groups particles.
SchemaSG
getSchema()
Returns the items schema.
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".
Object
newParticleSG(XSParticle pParticle)
Creates a new instance of ParticleSGChain generating the given particle.

Constructor Details

GroupSGImpl

public GroupSGImpl(GroupSGChain o)

Method Details

getClassContext

public Context getClassContext()
            throws SAXException
Returns the groups Context.
Specified by:
getClassContext in interface GroupSG

getFactory

public SGFactory getFactory()
Returns the factory that created this item.
Specified by:
getFactory in interface SGItem

getHeadOfChain

public GroupSGChain getHeadOfChain()

getLocator

public Locator getLocator()
Returns the items location in the schema; useful for error messages.
Specified by:
getLocator in interface SGItem

getName

public XsQName getName()
If the group is global: Returns the groups name.
Specified by:
getName in interface GroupSG

getParticles

public ParticleSG[] getParticles()
            throws SAXException
Returns the groups particles.
Specified by:
getParticles in interface GroupSG

getSchema

public SchemaSG getSchema()
Returns the items schema.
Specified by:
getSchema in interface SGItem

init

public void init()
            throws SAXException
Initializes the item.
Specified by:
init in interface SGItem

isAll

public boolean isAll()
Returns whether the groups compositor is "all".
Specified by:
isAll in interface GroupSG

isChoice

public boolean isChoice()
Returns whether the groups compositor is "choice".
Specified by:
isChoice in interface GroupSG

isGlobal

public boolean isGlobal()
Returns whether the group is global.
Specified by:
isGlobal in interface GroupSG

isSequence

public boolean isSequence()
Returns whether the groups compositor is "sequence".
Specified by:
isSequence in interface GroupSG

newParticleSG

public Object newParticleSG(XSParticle pParticle)
            throws 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.

Specified by:
newParticleSG in interface GroupSG