public class XSGroupImpl extends XSOpenAttrsImpl implements XSGroup
XSModelGroup.Compositor
ALL, CHOICE, SEQUENCE
Modifier | Constructor and Description |
---|---|
protected |
XSGroupImpl(XSObject pParent,
XsEChoice pChoice) |
protected |
XSGroupImpl(XSObject pParent,
XsESequence pSequence) |
protected |
XSGroupImpl(XSObject pParent,
XsTAll pAll) |
protected |
XSGroupImpl(XSObject pParent,
XsTGroupRef pBaseGroup) |
protected |
XSGroupImpl(XSObject pParent,
XsTNamedGroup pBaseGroup) |
Modifier and Type | Method and Description |
---|---|
protected void |
addParticle(XSModelGroupImpl pModelGroup,
XsTNestedParticle pParticle) |
protected void |
addParticle(XSModelGroupImpl pModelGroup,
XsTParticle pParticle) |
XSAnnotation[] |
getAnnotations()
Returns the array of annotations.
|
XSModelGroup.Compositor |
getCompositor()
Returns the model groups compositor.
|
XsQName |
getName()
If the group is global: Returns the groups name.
|
XSParticle[] |
getParticles()
Returns the model groups particles.
|
protected XsQName |
getQName(XsNCName pName) |
protected void |
initParticles(XSModelGroupImpl pModelGroup,
XsTNestedParticle[] pParticles) |
protected void |
initParticles(XSModelGroupImpl pModelGroup,
XsTParticle[] pParticles) |
boolean |
isAll()
Shortcut for
getCompositor().equals(ALL) . |
boolean |
isChoice()
Shortcut for
getCompositor().equals(CHOICE) . |
boolean |
isGlobal()
Returns whether the group is global or not.
|
boolean |
isSequence()
Shortcut for
getCompositor().equals(SEQUENCE) . |
protected boolean |
isValidated() |
void |
setGlobal(boolean pGlobal)
Sets whether the group is global or not.
|
void |
validate()
Validates the objects internal state.
|
getOpenAttributes
getLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllIn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOpenAttributes
getLocator, getParentObject, getXSSchema, isTopLevelObject
getLocator
protected XSGroupImpl(XSObject pParent, XsTGroupRef pBaseGroup) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XSGroupImpl(XSObject pParent, XsTNamedGroup pBaseGroup) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XSGroupImpl(XSObject pParent, XsEChoice pChoice) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XSGroupImpl(XSObject pParent, XsESequence pSequence) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XsQName getQName(XsNCName pName) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void initParticles(XSModelGroupImpl pModelGroup, XsTNestedParticle[] pParticles) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void initParticles(XSModelGroupImpl pModelGroup, XsTParticle[] pParticles) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void addParticle(XSModelGroupImpl pModelGroup, XsTParticle pParticle) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void addParticle(XSModelGroupImpl pModelGroup, XsTNestedParticle pParticle) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public boolean isGlobal()
XSGroup
Returns whether the group is global or not.
public void setGlobal(boolean pGlobal)
XSGroup
Sets whether the group is global or not.
public XsQName getName()
XSGroup
If the group is global: Returns the groups name. Otherwise returns null.
protected boolean isValidated()
public void validate() throws org.xml.sax.SAXException
XSObject
Validates the objects internal state.
validate
in interface XSModelGroup
validate
in interface XSObject
validate
in class XSObjectImpl
org.xml.sax.SAXException
public XSModelGroup.Compositor getCompositor()
XSModelGroup
Returns the model groups compositor.
getCompositor
in interface XSModelGroup
public XSParticle[] getParticles()
XSModelGroup
Returns the model groups particles.
getParticles
in interface XSModelGroup
public boolean isSequence()
XSModelGroup
Shortcut for getCompositor().equals(SEQUENCE)
.
isSequence
in interface XSModelGroup
XSModelGroup.getCompositor()
,
XSModelGroup.SEQUENCE
public boolean isChoice()
XSModelGroup
Shortcut for getCompositor().equals(CHOICE)
.
isChoice
in interface XSModelGroup
XSModelGroup.getCompositor()
,
XSModelGroup.CHOICE
public boolean isAll()
XSModelGroup
Shortcut for getCompositor().equals(ALL)
.
isAll
in interface XSModelGroup
XSModelGroup.getCompositor()
,
XSModelGroup.ALL
public XSAnnotation[] getAnnotations()
XSGroup
Returns the array of annotations.
getAnnotations
in interface XSGroup