public interface XSParticle
Interface of a model groups particle.
Modifier and Type | Interface and Description |
---|---|
static class |
XSParticle.Type |
Modifier and Type | Field and Description |
---|---|
static XSParticle.Type |
ELEMENT
The particle type "element".
|
static XSParticle.Type |
GROUP
The particle type "group".
|
static XSParticle.Type |
WILDCARD
The particle type "wildcard".
|
Modifier and Type | Method and Description |
---|---|
XSElement |
getElement()
If the particle type is element: Returns the element.
|
XSGroup |
getGroup()
If the particle type is group: Returns the group.
|
org.xml.sax.Locator |
getLocator()
Returns the particles Locator.
|
int |
getMaxOccurs()
Returns the particles maxOccurs value or -1 for unbounded.
|
int |
getMinOccurs()
Returns the particles minOccurs value.
|
XSParticle.Type |
getType()
Returns the particle type.
|
XSAny |
getWildcard()
If the particle type is wildcard: Returns the wildcard.
|
boolean |
isElement()
Shortcut for
getType().equals(ELEMENT) . |
boolean |
isGroup()
Shortcut for
getType().equals(GROUP) . |
boolean |
isWildcard()
Shortcut for
getType().equals(WILDCARD) . |
static final XSParticle.Type GROUP
The particle type "group".
static final XSParticle.Type WILDCARD
The particle type "wildcard".
static final XSParticle.Type ELEMENT
The particle type "element".
XSParticle.Type getType()
Returns the particle type.
XSGroup getGroup()
If the particle type is group: Returns the group.
java.lang.IllegalStateException
- isGroup()
returns falseboolean isWildcard()
Shortcut for getType().equals(WILDCARD)
.
XSAny getWildcard()
If the particle type is wildcard: Returns the wildcard.
java.lang.IllegalStateException
- isWildcard()
returns falseXSElement getElement()
If the particle type is element: Returns the element.
java.lang.IllegalStateException
- isElement()
returns falseint getMinOccurs()
Returns the particles minOccurs value.
int getMaxOccurs()
Returns the particles maxOccurs value or -1 for unbounded.
org.xml.sax.Locator getLocator()
Returns the particles Locator.