| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface of a model groups particle.
| Nested Class Summary | |
| static class | XSParticle.Type | 
| Field Summary | |
| static XSParticle.Type | ELEMENTThe particle type "element". | 
| static XSParticle.Type | GROUPThe particle type "group". | 
| static XSParticle.Type | WILDCARDThe particle type "wildcard". | 
| Method Summary | |
|  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). | 
| Field Detail | 
public static final XSParticle.Type GROUP
The particle type "group".
public static final XSParticle.Type WILDCARD
The particle type "wildcard".
public static final XSParticle.Type ELEMENT
The particle type "element".
| Method Detail | 
public XSParticle.Type getType()
Returns the particle type.
public boolean isGroup()
Shortcut for getType().equals(GROUP).
getType(), 
GROUPpublic XSGroup getGroup()
If the particle type is group: Returns the group.
java.lang.IllegalStateException - isGroup() returns falsepublic boolean isWildcard()
Shortcut for getType().equals(WILDCARD).
getType(), 
WILDCARDpublic XSAny getWildcard()
If the particle type is wildcard: Returns the wildcard.
java.lang.IllegalStateException - isWildcard() returns falsepublic boolean isElement()
Shortcut for getType().equals(ELEMENT).
getType(), 
ELEMENTpublic XSElement getElement()
If the particle type is element: Returns the element.
java.lang.IllegalStateException - isElement() returns falsepublic int getMinOccurs()
Returns the particles minOccurs value.
public int getMaxOccurs()
Returns the particles maxOccurs value or -1 for unbounded.
public org.xml.sax.Locator getLocator()
Returns the particles Locator.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||