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, 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()
           
 org.xml.sax.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".
 java.lang.Object newParticleSG(XSParticle pParticle)
          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

isGlobal

public boolean isGlobal()
Description copied from interface: GroupSG

Returns whether the group is global.

Specified by:
isGlobal in interface GroupSG

getName

public XsQName getName()
Description copied from interface: GroupSG
If the group is global: Returns the groups name.

Specified by:
getName in interface GroupSG
See Also:
GroupSG.isGlobal()

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

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

getParticles

public ParticleSG[] getParticles()
                          throws org.xml.sax.SAXException
Description copied from interface: GroupSG

Returns the groups particles.

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

newParticleSG

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

getSchema

public SchemaSG getSchema()
Description copied from interface: SGItem

Returns the items schema.

Specified by:
getSchema in interface SGItem

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

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

getHeadOfChain

public GroupSGChain getHeadOfChain()