org.apache.ws.jaxme.xs

Interface XSModelGroup

Known Subinterfaces:
JAXBGroup, XSGroup
Known Implementing Classes:
JAXBGroupImpl, XSGroupImpl, XSModelGroupImpl

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.
Author:
Jochen Wiedmann

Nested Class Summary

class
XSModelGroup.Compositor

Field Summary

static XSModelGroup.Compositor
ALL
The all compositor.
static XSModelGroup.Compositor
CHOICE
The choice compositor.
static XSModelGroup.Compositor
SEQUENCE
The sequence compositor.

Method Summary

XSModelGroup.Compositor
getCompositor()
Returns the model groups compositor.
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.

Field Details

ALL

public static final XSModelGroup.Compositor ALL
The all compositor.

CHOICE

public static final XSModelGroup.Compositor CHOICE
The choice compositor.

SEQUENCE

public static final XSModelGroup.Compositor SEQUENCE
The sequence compositor.

Method Details

getCompositor

public XSModelGroup.Compositor getCompositor()
Returns the model groups compositor.

getLocator

public Locator getLocator()
Returns the model groups locator.

getParticles

public XSParticle[] getParticles()
Returns the model groups particles.

isAll

public boolean isAll()
Shortcut for getCompositor().equals(ALL).

isChoice

public boolean isChoice()
Shortcut for getCompositor().equals(CHOICE).

isSequence

public boolean isSequence()
Shortcut for getCompositor().equals(SEQUENCE).

validate

public void validate()
            throws SAXException
Validates the particles contents.