public interface XSModelGroup
Interface of a model group. A model group is, for example,
defined by an xs:group
element, or by a complex type
without simpleContent or complexContent.
Modifier and Type | Interface and Description |
---|---|
static class |
XSModelGroup.Compositor |
Modifier and Type | Field and Description |
---|---|
static XSModelGroup.Compositor |
ALL
The all compositor.
|
static XSModelGroup.Compositor |
CHOICE
The choice compositor.
|
static XSModelGroup.Compositor |
SEQUENCE
The sequence compositor.
|
Modifier and Type | Method and Description |
---|---|
XSModelGroup.Compositor |
getCompositor()
Returns the model groups compositor.
|
org.xml.sax.Locator |
getLocator()
Returns the model groups locator.
|
XSParticle[] |
getParticles()
Returns the model groups particles.
|
boolean |
isAll()
Shortcut for
getCompositor().equals(ALL) . |
boolean |
isChoice()
Shortcut for
getCompositor().equals(CHOICE) . |
boolean |
isSequence()
Shortcut for
getCompositor().equals(SEQUENCE) . |
void |
validate()
Validates the particles contents.
|
static final XSModelGroup.Compositor SEQUENCE
The sequence compositor.
static final XSModelGroup.Compositor CHOICE
The choice compositor.
static final XSModelGroup.Compositor ALL
The all compositor.
XSModelGroup.Compositor getCompositor()
Returns the model groups compositor.
boolean isSequence()
Shortcut for getCompositor().equals(SEQUENCE)
.
getCompositor()
,
SEQUENCE
boolean isChoice()
Shortcut for getCompositor().equals(CHOICE)
.
getCompositor()
,
CHOICE
boolean isAll()
Shortcut for getCompositor().equals(ALL)
.
getCompositor()
,
ALL
XSParticle[] getParticles()
Returns the model groups particles.
org.xml.sax.Locator getLocator()
Returns the model groups locator.
void validate() throws org.xml.sax.SAXException
Validates the particles contents.
org.xml.sax.SAXException