org.apache.ws.jaxme.xs.impl
Class XSParticleImpl
java.lang.Object
org.apache.ws.jaxme.xs.impl.XSParticleImpl
- XSParticle
public class XSParticleImpl
extends java.lang.Object
Default implementation of a particle.
XSParticleImpl
public XSParticleImpl(XSAny pWildcard)
XSParticleImpl
public XSParticleImpl(XSElement pElement)
XSParticleImpl
public XSParticleImpl(XSGroup pGroup)
throws SAXException
getLocator
public Locator getLocator()
Returns the particles Locator.
- getLocator in interface XSParticle
getMaxOccurs
public int getMaxOccurs()
Returns the particles maxOccurs value or -1 for unbounded.
- getMaxOccurs in interface XSParticle
getMinOccurs
public int getMinOccurs()
Returns the particles minOccurs value.
- getMinOccurs in interface XSParticle
isElement
public boolean isElement()
Shortcut for getType().equals(ELEMENT)
.
- isElement in interface XSParticle
isGroup
public boolean isGroup()
Shortcut for getType().equals(GROUP)
.
- isGroup in interface XSParticle
isWildcard
public boolean isWildcard()
Shortcut for getType().equals(WILDCARD)
.
- isWildcard in interface XSParticle
setMaxOccurs
public void setMaxOccurs(int pMaxOccurs)
setMinOccurs
public void setMinOccurs(int pMinOccurs)