public interface MultiplicityElement extends Element
A multiplicity is a definition of an inclusive interval of non-negative integers beginning with a lower bound and ending with a (possibly infinite) upper bound. A MultiplicityElement embeds this information to specify the allowable cardinalities for an instantiation of the Element.
The following features are supported:
UMLPackage.getMultiplicityElement()
Modifier and Type | Method and Description |
---|---|
int |
getLower()
Returns the value of the 'Lower' attribute.
|
ValueSpecification |
getLowerValue()
Returns the value of the 'Lower Value' containment reference.
|
int |
getUpper()
Returns the value of the 'Upper' attribute.
|
ValueSpecification |
getUpperValue()
Returns the value of the 'Upper Value' containment reference.
|
boolean |
isOrdered()
Returns the value of the 'Ordered' attribute.
|
boolean |
isUnique()
Returns the value of the 'Unique' attribute.
|
void |
setLowerValue(ValueSpecification value)
Sets the value of the '
Lower Value ' containment reference. |
void |
setOrdered(boolean value)
Sets the value of the '
Ordered ' attribute. |
void |
setUnique(boolean value)
Sets the value of the '
Unique ' attribute. |
void |
setUpperValue(ValueSpecification value)
Sets the value of the '
Upper Value ' containment reference. |
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotypeInstance, getOwnedComment, getOwnedElement, getOwner, getSyncElement, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasOwnedComment, hasOwnedElement, setAppliedStereotypeInstance, setOwner, setSyncElement
get_representationText, getLocalID, isInvalid, set_representationText, setLocalID, sGetLocalID
getID, getMDExtension, getMdExtensions, setID
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, removePropertyChangeListener, sGetID
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
boolean isOrdered()
"false"
.
For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this MultiplicityElement are sequentially ordered.
setOrdered(boolean)
,
UMLPackage.getMultiplicityElement_Ordered()
void setOrdered(boolean value)
Ordered
' attribute.
value
- the new value of the 'Ordered' attribute.isOrdered()
boolean isUnique()
"true"
.
For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this MultiplicityElement are unique.
setUnique(boolean)
,
UMLPackage.getMultiplicityElement_Unique()
void setUnique(boolean value)
Unique
' attribute.
value
- the new value of the 'Unique' attribute.isUnique()
int getUpper()
UMLPackage.getMultiplicityElement_Upper()
int getLower()
UMLPackage.getMultiplicityElement_Lower()
@CheckForNull ValueSpecification getUpperValue()
Owning Upper
'.
The specification of the upper bound for this multiplicity.
setUpperValue(ValueSpecification)
,
UMLPackage.getMultiplicityElement_UpperValue()
,
ValueSpecification.getOwningUpper()
void setUpperValue(@CheckForNull ValueSpecification value)
Upper Value
' containment reference.
value
- the new value of the 'Upper Value' containment reference.getUpperValue()
@CheckForNull ValueSpecification getLowerValue()
Owning Lower
'.
The specification of the lower bound for this multiplicity.
setLowerValue(ValueSpecification)
,
UMLPackage.getMultiplicityElement_LowerValue()
,
ValueSpecification.getOwningLower()
void setLowerValue(@CheckForNull ValueSpecification value)
Lower Value
' containment reference.
value
- the new value of the 'Lower Value' containment reference.getLowerValue()