org.jbind.xml.schema.cmp
Class ElemGroupRef

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.ElemGroupRef
All Implemented Interfaces:
IComponent, IContentDesc, IElemGroupDesc, IHasBindingAttributes, IHasLocation, IHasRange, ISourceInfo

public abstract class ElemGroupRef
extends ElemGroupDesc


Constructor Summary
ElemGroupRef(ISourceInfo aSourceInfo, IRange aRange, IElemGroupDesc aContent)
           
 
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.
 IElemGroupDesc createReference(ISourceInfo aSourceInfo, IRange aRange)
           
 Compositor getCompositor()
          Gets the compositor.
 java.lang.String getDesc()
          Gets a description that is output if the content was not matched when an instance is read in.
 IRange getInnerRange(IRef aRef)
           
 int getNbParticles()
           
 boolean isReference()
          Checks if this component is defined as a reference to another component.
 java.util.Iterator iterContent()
           
 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, isPointless
 
Methods inherited from interface org.jbind.xml.core.content.IContentDesc
createUseState, 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

ElemGroupRef

public ElemGroupRef(ISourceInfo aSourceInfo,
                    IRange aRange,
                    IElemGroupDesc aContent)
Method Detail

getDesc

public java.lang.String getDesc()
Description copied from interface: IContentDesc
Gets a description that is output if the content was not matched when an instance is read in.

Returns:
(required).

getInnerRange

public IRange getInnerRange(IRef aRef)

iterContent

public java.util.Iterator iterContent()

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

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.

createReference

public IElemGroupDesc createReference(ISourceInfo aSourceInfo,
                                      IRange aRange)

add

public void add(IContentDesc aContent)

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

getCompositor

public Compositor getCompositor()
Description copied from interface: IElemGroupDesc
Gets the compositor.

Returns:
(required).

getNbParticles

public int getNbParticles()