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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.ParticleSGImpl
All Implemented Interfaces:
ParticleSG

public class ParticleSGImpl
extends java.lang.Object
implements ParticleSG


Constructor Summary
ParticleSGImpl(ParticleSGChain o)
           
 
Method Summary
 void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)
          Invokes the given SGlet for all non null values.
 GroupSG getGroupSG()
          If the particle is a group, returns the particles GroupSG.
 ParticleSGChain getHeadOfChain()
           
 org.xml.sax.Locator getLocator()
          Returns the particles locator.
 int getMaxOccurs()
          Returns the particles maxOccurs value; -1 indicated "unbounded".
 int getMinOccurs()
          Returns the particles minOccurs value.
 ObjectSG getObjectSG()
          If the particle is an element or wildcard, returns the particles ObjectSG.
 PropertySG getPropertySG()
          Returns an instance of PropertySG.
 void init()
          Initializes the ParticleSG.
 boolean isElement()
          Returns whether the particle is an element.
 boolean isGroup()
          Returns whether the pariticle is a group.
 boolean isMultiple()
          Returns whether the particles multiplicity is 2 or greater.
 boolean isWildcard()
          Returns whether the particle is a wildcard.
 java.lang.Object newPropertySGChain()
          Creates a new instance of PropertySGChain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleSGImpl

public ParticleSGImpl(ParticleSGChain o)
Method Detail

init

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

Initializes the ParticleSG.

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

getLocator

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

Returns the particles locator.

Specified by:
getLocator in interface ParticleSG

isGroup

public boolean isGroup()
Description copied from interface: ParticleSG

Returns whether the pariticle is a group. If so, you may use the ParticleSG.getGroupSG() method.

Specified by:
isGroup in interface ParticleSG
See Also:
ParticleSG.getGroupSG()

isElement

public boolean isElement()
Description copied from interface: ParticleSG

Returns whether the particle is an element. If so, you may use the ParticleSG.getObjectSG() method.

Specified by:
isElement in interface ParticleSG
See Also:
ParticleSG.getObjectSG()

isWildcard

public boolean isWildcard()
Description copied from interface: ParticleSG

Returns whether the particle is a wildcard. If so, you may use the ParticleSG.getObjectSG() method.

Specified by:
isWildcard in interface ParticleSG
See Also:
ParticleSG.getObjectSG()

getGroupSG

public GroupSG getGroupSG()
Description copied from interface: ParticleSG

If the particle is a group, returns the particles GroupSG.

Specified by:
getGroupSG in interface ParticleSG
See Also:
ParticleSG.isGroup()

getObjectSG

public ObjectSG getObjectSG()
Description copied from interface: ParticleSG

If the particle is an element or wildcard, returns the particles ObjectSG.

Specified by:
getObjectSG in interface ParticleSG
See Also:
ParticleSG.isElement(), ParticleSG.isWildcard()

getMinOccurs

public int getMinOccurs()
Description copied from interface: ParticleSG

Returns the particles minOccurs value.

Specified by:
getMinOccurs in interface ParticleSG
See Also:
ParticleSG.getMaxOccurs()

getMaxOccurs

public int getMaxOccurs()
Description copied from interface: ParticleSG

Returns the particles maxOccurs value; -1 indicated "unbounded".

Specified by:
getMaxOccurs in interface ParticleSG
See Also:
ParticleSG.isMultiple(), ParticleSG.getMinOccurs()

isMultiple

public boolean isMultiple()
Description copied from interface: ParticleSG

Returns whether the particles multiplicity is 2 or greater.

Specified by:
isMultiple in interface ParticleSG
See Also:
ParticleSG.getMaxOccurs()

newPropertySGChain

public java.lang.Object newPropertySGChain()
                                    throws org.xml.sax.SAXException
Description copied from interface: ParticleSG

Creates a new instance of PropertySGChain.

Specified by:
newPropertySGChain in interface ParticleSG
Throws:
org.xml.sax.SAXException

getPropertySG

public PropertySG getPropertySG()
                         throws org.xml.sax.SAXException
Description copied from interface: ParticleSG

Returns an instance of PropertySG.

Specified by:
getPropertySG in interface ParticleSG
Throws:
org.xml.sax.SAXException

forAllNonNullValues

public void forAllNonNullValues(JavaMethod pMethod,
                                DirectAccessible pElement,
                                SGlet pSGlet)
                         throws org.xml.sax.SAXException
Description copied from interface: ParticleSG

Invokes the given SGlet for all non null values.

Specified by:
forAllNonNullValues in interface ParticleSG
Throws:
org.xml.sax.SAXException

getHeadOfChain

public ParticleSGChain getHeadOfChain()