Interface MultiplicityElement
-
- All Superinterfaces:
BaseElement
,java.lang.Cloneable
,java.lang.Comparable
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,ModelObject
,org.eclipse.emf.common.notify.Notifier
,javax.jmi.reflect.RefBaseObject
,javax.jmi.reflect.RefFeatured
,javax.jmi.reflect.RefObject
- All Known Subinterfaces:
ActionInputPin
,ConnectorEnd
,ExtensionEnd
,InputPin
,OutputPin
,Parameter
,Pin
,Port
,Property
,StructuralFeature
,ValuePin
,Variable
public interface MultiplicityElement extends Element
A representation of the model object 'Multiplicity 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:
- See Also:
UMLPackage.getMultiplicityElement()
- Model:
- abstract="true" annotation="MOF package='classes.mdkernel'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, dispose, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, isParentOf, removeAllPropertyChangeListeners, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, ignoringRefGetValue, isInvalid, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText, setLocalID, sGetLocalID
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
-
-
-
Method Detail
-
isOrdered
boolean isOrdered()
Returns the value of the 'Ordered' attribute. The default value is"false"
. For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this MultiplicityElement are sequentially ordered.- Returns:
- the value of the 'Ordered' attribute.
- See Also:
setOrdered(boolean)
,com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getMultiplicityElement_Ordered()
- Model:
- default="false" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
- Generated:
-
setOrdered
void setOrdered(boolean value)
Sets the value of the 'Ordered
' attribute.- Parameters:
value
- the new value of the 'Ordered' attribute.- See Also:
isOrdered()
- Generated:
-
isUnique
boolean isUnique()
Returns the value of the 'Unique' attribute. The default value is"true"
. For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this MultiplicityElement are unique.- Returns:
- the value of the 'Unique' attribute.
- See Also:
setUnique(boolean)
,com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getMultiplicityElement_Unique()
- Model:
- default="true" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
- Generated:
-
setUnique
void setUnique(boolean value)
Sets the value of the 'Unique
' attribute.- Parameters:
value
- the new value of the 'Unique' attribute.- See Also:
isUnique()
- Generated:
-
getUpper
int getUpper()
Returns the value of the 'Upper' attribute. The upper bound of the multiplicity interval.- Returns:
- the value of the 'Upper' attribute.
- See Also:
UMLPackage.getMultiplicityElement_Upper()
- Model:
- dataType="com.nomagic.uml2.ext.magicdraw.UnlimitedNatural" required="true" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
- Generated:
-
getLower
int getLower()
Returns the value of the 'Lower' attribute. The lower bound of the multiplicity interval.- Returns:
- the value of the 'Lower' attribute.
- See Also:
UMLPackage.getMultiplicityElement_Lower()
- Model:
- dataType="com.nomagic.uml2.ext.magicdraw.Integer" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
- Generated:
-
getUpperValue
@CheckForNull ValueSpecification getUpperValue()
Returns the value of the 'Upper Value' containment reference. It is bidirectional and its opposite is 'Owning Upper
'. The specification of the upper bound for this multiplicity.- Returns:
- the value of the 'Upper Value' containment reference.
- See Also:
setUpperValue(ValueSpecification)
,UMLPackage.getMultiplicityElement_UpperValue()
,ValueSpecification.getOwningUpper()
- Model:
- opposite="owningUpper" containment="true" resolveProxies="true" ordered="false"
- Generated:
-
setUpperValue
void setUpperValue(@CheckForNull ValueSpecification value)
Sets the value of the 'Upper Value
' containment reference.- Parameters:
value
- the new value of the 'Upper Value' containment reference.- See Also:
getUpperValue()
- Generated:
-
getLowerValue
@CheckForNull ValueSpecification getLowerValue()
Returns the value of the 'Lower Value' containment reference. It is bidirectional and its opposite is 'Owning Lower
'. The specification of the lower bound for this multiplicity.- Returns:
- the value of the 'Lower Value' containment reference.
- See Also:
setLowerValue(ValueSpecification)
,UMLPackage.getMultiplicityElement_LowerValue()
,ValueSpecification.getOwningLower()
- Model:
- opposite="owningLower" containment="true" resolveProxies="true" ordered="false"
- Generated:
-
setLowerValue
void setLowerValue(@CheckForNull ValueSpecification value)
Sets the value of the 'Lower Value
' containment reference.- Parameters:
value
- the new value of the 'Lower Value' containment reference.- See Also:
getLowerValue()
- Generated:
-
-