public class ParticleSGImpl extends java.lang.Object implements ParticleSG
| Constructor and Description |
|---|
ParticleSGImpl(ParticleSGChain o) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public ParticleSGImpl(ParticleSGChain o)
public void init()
throws org.xml.sax.SAXException
ParticleSGInitializes the ParticleSG.
init in interface ParticleSGorg.xml.sax.SAXExceptionpublic org.xml.sax.Locator getLocator()
ParticleSGReturns the particles locator.
getLocator in interface ParticleSGpublic boolean isGroup()
ParticleSGReturns whether the pariticle is a group. If so, you may use the
ParticleSG.getGroupSG() method.
isGroup in interface ParticleSGParticleSG.getGroupSG()public boolean isElement()
ParticleSGReturns whether the particle is an element. If so, you may use the
ParticleSG.getObjectSG() method.
isElement in interface ParticleSGParticleSG.getObjectSG()public boolean isWildcard()
ParticleSGReturns whether the particle is a wildcard. If so, you may use the
ParticleSG.getObjectSG() method.
isWildcard in interface ParticleSGParticleSG.getObjectSG()public GroupSG getGroupSG()
ParticleSGIf the particle is a group, returns the particles GroupSG.
getGroupSG in interface ParticleSGParticleSG.isGroup()public ObjectSG getObjectSG()
ParticleSGIf the particle is an element or wildcard, returns the particles ObjectSG.
getObjectSG in interface ParticleSGParticleSG.isElement(),
ParticleSG.isWildcard()public int getMinOccurs()
ParticleSGReturns the particles minOccurs value.
getMinOccurs in interface ParticleSGParticleSG.getMaxOccurs()public int getMaxOccurs()
ParticleSGReturns the particles maxOccurs value; -1 indicated "unbounded".
getMaxOccurs in interface ParticleSGParticleSG.isMultiple(),
ParticleSG.getMinOccurs()public boolean isMultiple()
ParticleSGReturns whether the particles multiplicity is 2 or greater.
isMultiple in interface ParticleSGParticleSG.getMaxOccurs()public java.lang.Object newPropertySGChain()
throws org.xml.sax.SAXException
ParticleSGCreates a new instance of PropertySGChain.
newPropertySGChain in interface ParticleSGorg.xml.sax.SAXExceptionpublic PropertySG getPropertySG() throws org.xml.sax.SAXException
ParticleSGReturns an instance of PropertySG.
getPropertySG in interface ParticleSGorg.xml.sax.SAXExceptionpublic void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) throws org.xml.sax.SAXException
ParticleSGInvokes the given SGlet for all non null values.
forAllNonNullValues in interface ParticleSGorg.xml.sax.SAXExceptionpublic ParticleSGChain getHeadOfChain()