org.apache.ws.jaxme.xs.impl
Class XSModelGroupImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSModelGroupImpl
All Implemented Interfaces:
XSModelGroup

public class XSModelGroupImpl
extends java.lang.Object
implements XSModelGroup

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.xs.XSModelGroup
XSModelGroup.Compositor
 
Field Summary
 
Fields inherited from interface org.apache.ws.jaxme.xs.XSModelGroup
ALL, CHOICE, SEQUENCE
 
Constructor Summary
XSModelGroupImpl(XSModelGroup.Compositor pCompositor, org.xml.sax.Locator pLocator)
           
 
Method Summary
 void addParticle(XSParticle pParticle)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSModelGroupImpl

public XSModelGroupImpl(XSModelGroup.Compositor pCompositor,
                        org.xml.sax.Locator pLocator)
Method Detail

getCompositor

public XSModelGroup.Compositor getCompositor()
Description copied from interface: XSModelGroup

Returns the model groups compositor.

Specified by:
getCompositor in interface XSModelGroup

isSequence

public boolean isSequence()
Description copied from interface: XSModelGroup

Shortcut for getCompositor().equals(SEQUENCE).

Specified by:
isSequence in interface XSModelGroup
See Also:
XSModelGroup.getCompositor(), XSModelGroup.SEQUENCE

isChoice

public boolean isChoice()
Description copied from interface: XSModelGroup

Shortcut for getCompositor().equals(CHOICE).

Specified by:
isChoice in interface XSModelGroup
See Also:
XSModelGroup.getCompositor(), XSModelGroup.CHOICE

isAll

public boolean isAll()
Description copied from interface: XSModelGroup

Shortcut for getCompositor().equals(ALL).

Specified by:
isAll in interface XSModelGroup
See Also:
XSModelGroup.getCompositor(), XSModelGroup.ALL

addParticle

public void addParticle(XSParticle pParticle)
                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getParticles

public XSParticle[] getParticles()
Description copied from interface: XSModelGroup

Returns the model groups particles.

Specified by:
getParticles in interface XSModelGroup

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XSModelGroup

Validates the particles contents.

Specified by:
validate in interface XSModelGroup
Throws:
org.xml.sax.SAXException

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: XSModelGroup

Returns the model groups locator.

Specified by:
getLocator in interface XSModelGroup