org.apache.ws.jaxme.xs
Interface XSParticle
- XSParticleImpl
public interface XSParticle
Interface of a model groups particle.
ELEMENT
public static final XSParticle.Type ELEMENT
The particle type "element".
WILDCARD
public static final XSParticle.Type WILDCARD
The particle type "wildcard".
getElement
public XSElement getElement()
If the particle type is element: Returns the element.
getGroup
public XSGroup getGroup()
If the particle type is group: Returns the group.
getLocator
public Locator getLocator()
Returns the particles Locator.
getMaxOccurs
public int getMaxOccurs()
Returns the particles maxOccurs value or -1 for unbounded.
getMinOccurs
public int getMinOccurs()
Returns the particles minOccurs value.
getWildcard
public XSAny getWildcard()
If the particle type is wildcard: Returns the wildcard.
isElement
public boolean isElement()
Shortcut for getType().equals(ELEMENT)
.
isGroup
public boolean isGroup()
Shortcut for getType().equals(GROUP)
.
isWildcard
public boolean isWildcard()
Shortcut for getType().equals(WILDCARD)
.