org.jbind.xml.schema.cmp
Class ElemGroupDecl

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.cmp.Content
          extended byorg.jbind.xml.schema.cmp.ElemGroupDesc
              extended byorg.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


Constructor Summary
ElemGroupDecl(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName, IRange aRange)
           
 
Method Summary
 void add(IContentDesc aContent)
           
 void collectElemDescs(java.util.Map anElemRefOrDecls, java.util.List anElemWildcards, IConstraintViolations aViolations)
          Recursively collects the element descriptions that are contained in this content object.
 int getNbParticles()
           
 boolean isReference()
          Checks if this component is defined as a reference to another component.
 java.util.Iterator iterContent()
           
 void setSubContent(int anIndex, IContentDesc aContent)
           
 void validate(IConstraintViolations aViolations)
          Validates the component.
 
Methods inherited from class org.jbind.xml.schema.cmp.ElemGroupDesc
addToParent, createUseStateProxy, getRange, getSymbolspace, isPointlessAll, isPointlessChoice, isPointlessSequence, removePointlessGroups, replaceSubstitutions, replaceSubstitutionsByChoice
 
Methods inherited from class org.jbind.xml.schema.cmp.Content
getMaxOccurs, getMinOccurs, getRange, isEmptiable, isUnbounded
 
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.content.IElemGroupDesc
createGroup, createGroup, createReference, getCompositor, getInnerRange, isPointless
 
Methods inherited from interface org.jbind.xml.core.content.IContentDesc
createUseState, getDesc, getMaxOccurs, getMinOccurs, isEmptiable, isUnbounded
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, isAnonymous, isTopLevelComponent, setBindings, setParentComponent
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 
Methods inherited from interface org.jbind.xml.base.IHasRange
getRange
 

Constructor Detail

ElemGroupDecl

public ElemGroupDecl(ISourceInfo aSourceInfo,
                     java.lang.String aNamespace,
                     java.lang.String aName,
                     IRange aRange)
Method Detail

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 IRefs 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).