public class XSModelGroupImpl extends java.lang.Object implements XSModelGroup
XSModelGroup.CompositorALL, CHOICE, SEQUENCE| Constructor and Description |
|---|
XSModelGroupImpl(XSModelGroup.Compositor pCompositor,
org.xml.sax.Locator pLocator) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public XSModelGroupImpl(XSModelGroup.Compositor pCompositor, org.xml.sax.Locator pLocator)
public XSModelGroup.Compositor getCompositor()
XSModelGroupReturns the model groups compositor.
getCompositor in interface XSModelGrouppublic boolean isSequence()
XSModelGroupShortcut for getCompositor().equals(SEQUENCE).
isSequence in interface XSModelGroupXSModelGroup.getCompositor(),
XSModelGroup.SEQUENCEpublic boolean isChoice()
XSModelGroupShortcut for getCompositor().equals(CHOICE).
isChoice in interface XSModelGroupXSModelGroup.getCompositor(),
XSModelGroup.CHOICEpublic boolean isAll()
XSModelGroupShortcut for getCompositor().equals(ALL).
isAll in interface XSModelGroupXSModelGroup.getCompositor(),
XSModelGroup.ALLpublic void addParticle(XSParticle pParticle) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic XSParticle[] getParticles()
XSModelGroupReturns the model groups particles.
getParticles in interface XSModelGrouppublic void validate()
throws org.xml.sax.SAXException
XSModelGroupValidates the particles contents.
validate in interface XSModelGrouporg.xml.sax.SAXExceptionpublic org.xml.sax.Locator getLocator()
XSModelGroupReturns the model groups locator.
getLocator in interface XSModelGroup