org.jbind.xml.schema.cmp
Class ElemGroupDecl
java.lang.Object
org.jbind.xml.schema.cmp.Component
org.jbind.xml.schema.cmp.Content
org.jbind.xml.schema.cmp.ElemGroupDesc
org.jbind.xml.schema.cmp.ElemGroupDecl
- All Implemented Interfaces:
- IComponent, IContentDesc, IElemGroupDesc, IHasBindingAttributes, IHasLocation, IHasRange, ISourceInfo
- Direct Known Subclasses:
- AllDecl, ChoiceDecl, SequenceDecl
- public abstract class ElemGroupDecl
- extends ElemGroupDesc
Methods inherited from class org.jbind.xml.schema.cmp.Component |
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, isTopLevelComponent, setBindings, setParentComponent, visitSubComponents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jbind.xml.core.cmp.IComponent |
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, isAnonymous, isTopLevelComponent, setBindings, setParentComponent |
ElemGroupDecl
public ElemGroupDecl(ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName,
IRange aRange)
iterContent
public java.util.Iterator iterContent()
getNbParticles
public int getNbParticles()
add
public void add(IContentDesc aContent)
setSubContent
public void setSubContent(int anIndex,
IContentDesc aContent)
isReference
public boolean isReference()
- Description copied from interface:
IComponent
- Checks if this component is defined as a reference to another component.
- Returns:
- Returns
true
iff this component is a reference to
another component.
collectElemDescs
public void collectElemDescs(java.util.Map anElemRefOrDecls,
java.util.List anElemWildcards,
IConstraintViolations aViolations)
- Description copied from interface:
IContentDesc
- Recursively collects the element descriptions that are contained in this
content object. Element declarations with the same name and namespace must
have the same type as well as the same fixed/default values.
- Parameters:
anElemRefOrDecls
- (required). Maps IRef
s to IElemRefOrDecl
.anElemWildcards
- (required). Collects the element wildcards.aViolations
- (required).
validate
public void validate(IConstraintViolations aViolations)
- Description copied from interface:
IComponent
- Validates the component. This method is called as the last step of the
component construction.
- Parameters:
aViolations
- (required).