Interface MultiplicityElement
- All Superinterfaces:
BaseElement
,Cloneable
,Comparable
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,com.dassault_systemes.modeler.foundation.model.ModelElement
,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
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:
- Model:
- abstract="true" annotation="MOF package='classes.mdkernel'"
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionint
getLower()
Returns the value of the 'Lower' attribute.Returns the value of the 'Lower Value' containment reference.int
getUpper()
Returns the value of the 'Upper' attribute.Returns the value of the 'Upper Value' containment reference.boolean
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, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetID
Methods inherited from interface java.lang.Comparable
compareTo
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.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalID
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText
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
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Method Details
-
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:
- 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:
- 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:
- 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:
- Model:
- dataType="com.nomagic.uml2.ext.magicdraw.Integer" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
- Generated:
-
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:
- Model:
- opposite="owningUpper" containment="true" resolveProxies="true" ordered="false"
- Generated:
-
setUpperValue
Sets the value of the 'Upper Value
' containment reference.- Parameters:
value
- the new value of the 'Upper Value' containment reference.- See Also:
- Generated:
-
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:
- Model:
- opposite="owningLower" containment="true" resolveProxies="true" ordered="false"
- Generated:
-
setLowerValue
Sets the value of the 'Lower Value
' containment reference.- Parameters:
value
- the new value of the 'Lower Value' containment reference.- See Also:
- Generated:
-