org.apache.ws.jaxme.generator.sg

Interface ParticleSG

public interface ParticleSG

Interface of a particle.
Method Summary
voidforAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)

Invokes the given SGlet for all non null values.

GroupSGgetGroupSG()

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

LocatorgetLocator()

Returns the particles locator.

intgetMaxOccurs()

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

intgetMinOccurs()

Returns the particles minOccurs value.

ObjectSGgetObjectSG()

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

PropertySGgetPropertySG()

Returns an instance of PropertySG.

voidinit()

Initializes the ParticleSG.

booleanisElement()

Returns whether the particle is an element.

booleanisGroup()

Returns whether the pariticle is a group.

booleanisMultiple()

Returns whether the particles multiplicity is 2 or greater.

booleanisWildcard()

Returns whether the particle is a wildcard.

ObjectnewPropertySGChain()

Creates a new instance of org.apache.ws.jaxme.generator.sg.PropertySGChain.

Method Detail

forAllNonNullValues

public void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)

Invokes the given SGlet for all non null values.

getGroupSG

public GroupSG getGroupSG()

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

Throws: IllegalStateException The particle is no group.

See Also: isGroup

getLocator

public Locator getLocator()

Returns the particles locator.

getMaxOccurs

public int getMaxOccurs()

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

See Also: isMultiple getMinOccurs

getMinOccurs

public int getMinOccurs()

Returns the particles minOccurs value.

See Also: getMaxOccurs

getObjectSG

public ObjectSG getObjectSG()

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

Throws: IllegalStateException The particle is neither an element nor a wildcard

See Also: isElement isWildcard

getPropertySG

public PropertySG getPropertySG()

Returns an instance of PropertySG.

init

public void init()

Initializes the ParticleSG.

isElement

public boolean isElement()

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

See Also: getObjectSG

isGroup

public boolean isGroup()

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

See Also: getGroupSG

isMultiple

public boolean isMultiple()

Returns whether the particles multiplicity is 2 or greater.

See Also: getMaxOccurs

isWildcard

public boolean isWildcard()

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

See Also: getObjectSG

newPropertySGChain

public Object newPropertySGChain()

Creates a new instance of org.apache.ws.jaxme.generator.sg.PropertySGChain.