org.jbind.xml.core.content
Interface IElemDecl

All Superinterfaces:
IComponent, IContentDesc, IDataDesc, IDataRefOrDecl, IDefaultTextContentProvider, IElemDesc, IElemRefOrDecl, IHasBindingAttributes, IHasLocation, IHasRange, ISourceInfo
All Known Implementing Classes:
ElemDecl

public interface IElemDecl
extends IElemRefOrDecl, IHasRange


Method Summary
 void addSubstitute(IElemDecl aDecl)
          Adds a declaration that can substitute this declaration.
 void setSubstitutionGroup(IElemDecl anElementDecl)
           
 
Methods inherited from interface org.jbind.xml.core.content.IElemRefOrDecl
getSubstitute, getSubstitutionGroup, iterSubstitutes
 
Methods inherited from interface org.jbind.xml.core.content.IDataRefOrDecl
addValueConstraints
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate
 
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.core.content.IDataDesc
checkValueConstraints, createData, createEmptyData, createUncheckedData, getDefault, getFixed, getType, isActive, isActive
 
Methods inherited from interface org.jbind.xml.core.bridge.IDefaultTextContentProvider
getDefaultTextContent
 
Methods inherited from interface org.jbind.xml.core.content.IElemDesc
checkIdentityConstraints, isAbstract, isNillable
 
Methods inherited from interface org.jbind.xml.core.content.IContentDesc
addToParent, collectElemDescs, createUseState, createUseStateProxy, getDesc, getMaxOccurs, getMinOccurs, getRange, isEmptiable, isUnbounded, replaceSubstitutions
 
Methods inherited from interface org.jbind.xml.base.IHasRange
getRange
 

Method Detail

setSubstitutionGroup

public void setSubstitutionGroup(IElemDecl anElementDecl)

addSubstitute

public void addSubstitute(IElemDecl aDecl)
Adds a declaration that can substitute this declaration. If the added declaration has a minOccurs or a maxOccurs that is different from 1 then a new IElemRef is created with its minOccurs and maxOccurs equal to one.

Parameters:
aDecl - (required). The substituting declaration.