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 {@link SGlet} for all non null values.

GroupSGgetGroupSG()

If the particle is a group, returns the particles {@link 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 {@link ObjectSG}.

PropertySGgetPropertySG()

Returns an instance of {@link org.apache.ws.jaxme.generator.sg.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 {@link org.apache.ws.jaxme.generator.sg.PropertySGChain}.

Method Detail

forAllNonNullValues

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

Invokes the given {@link SGlet} for all non null values.

getGroupSG

public GroupSG getGroupSG()

If the particle is a group, returns the particles {@link 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 {@link ObjectSG}.

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

See Also: isElement isWildcard

getPropertySG

public PropertySG getPropertySG()

Returns an instance of {@link org.apache.ws.jaxme.generator.sg.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 {@link #getObjectSG()} method.

See Also: getObjectSG

isGroup

public boolean isGroup()

Returns whether the pariticle is a group. If so, you may use the {@link #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 {@link #getObjectSG()} method.

See Also: getObjectSG

newPropertySGChain

public Object newPropertySGChain()

Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.PropertySGChain}.