org.apache.ws.jaxme.xs
Interface XSModelGroup

All Known Subinterfaces:
JAXBGroup, XSGroup
All 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
static 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.
 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.
 

Field Detail

SEQUENCE

static final XSModelGroup.Compositor SEQUENCE

The sequence compositor.


CHOICE

static final XSModelGroup.Compositor CHOICE

The choice compositor.


ALL

static final XSModelGroup.Compositor ALL

The all compositor.

Method Detail

getCompositor

XSModelGroup.Compositor getCompositor()

Returns the model groups compositor.


isSequence

boolean isSequence()

Shortcut for getCompositor().equals(SEQUENCE).

See Also:
getCompositor(), SEQUENCE

isChoice

boolean isChoice()

Shortcut for getCompositor().equals(CHOICE).

See Also:
getCompositor(), CHOICE

isAll

boolean isAll()

Shortcut for getCompositor().equals(ALL).

See Also:
getCompositor(), ALL

getParticles

XSParticle[] getParticles()

Returns the model groups particles.


getLocator

org.xml.sax.Locator getLocator()

Returns the model groups locator.


validate

void validate()
              throws org.xml.sax.SAXException

Validates the particles contents.

Throws:
org.xml.sax.SAXException