org.jbind.xml.schema.cmp
Class ElemGroupRef
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.ElemGroupRef
- All Implemented Interfaces:
- IComponent, IContentDesc, IElemGroupDesc, IHasBindingAttributes, IHasLocation, IHasRange, ISourceInfo
- public abstract class ElemGroupRef
- 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 |
ElemGroupRef
public ElemGroupRef(ISourceInfo aSourceInfo,
IRange aRange,
IElemGroupDesc aContent)
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 IRef
s 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()