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

Class ParticleSGImpl

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()
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.
Object
newPropertySGChain()
Creates a new instance of PropertySGChain.

Constructor Details

ParticleSGImpl

public ParticleSGImpl(ParticleSGChain o)

Method Details

forAllNonNullValues

public void forAllNonNullValues(JavaMethod pMethod,
                                DirectAccessible pElement,
                                SGlet pSGlet)
            throws SAXException
Invokes the given SGlet for all non null values.
Specified by:
forAllNonNullValues in interface ParticleSG

getGroupSG

public GroupSG getGroupSG()
If the particle is a group, returns the particles GroupSG.
Specified by:
getGroupSG in interface ParticleSG

getHeadOfChain

public ParticleSGChain getHeadOfChain()

getLocator

public Locator getLocator()
Returns the particles locator.
Specified by:
getLocator in interface ParticleSG

getMaxOccurs

public int getMaxOccurs()
Returns the particles maxOccurs value; -1 indicated "unbounded".
Specified by:
getMaxOccurs in interface ParticleSG

getMinOccurs

public int getMinOccurs()
Returns the particles minOccurs value.
Specified by:
getMinOccurs in interface ParticleSG

getObjectSG

public ObjectSG getObjectSG()
If the particle is an element or wildcard, returns the particles ObjectSG.
Specified by:
getObjectSG in interface ParticleSG

getPropertySG

public PropertySG getPropertySG()
            throws SAXException
Returns an instance of PropertySG.
Specified by:
getPropertySG in interface ParticleSG

init

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

isElement

public boolean isElement()
Specified by:
isElement in interface ParticleSG

isGroup

public boolean isGroup()
Specified by:
isGroup in interface ParticleSG

isMultiple

public boolean isMultiple()
Returns whether the particles multiplicity is 2 or greater.
Specified by:
isMultiple in interface ParticleSG

isWildcard

public boolean isWildcard()
Specified by:
isWildcard in interface ParticleSG

newPropertySGChain

public Object newPropertySGChain()
            throws SAXException
Specified by:
newPropertySGChain in interface ParticleSG