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 TypeMethodDescriptionintgetLower()Returns the value of the 'Lower' attribute.Returns the value of the 'Lower Value' containment reference.intgetUpper()Returns the value of the 'Upper' attribute.Returns the value of the 'Upper Value' containment reference.booleanReturns the value of the 'Ordered' attribute.booleanisUnique()Returns the value of the 'Unique' attribute.voidsetLowerValue(ValueSpecification value) Sets the value of the 'Lower Value' containment reference.voidsetOrdered(boolean value) Sets the value of the 'Ordered' attribute.voidsetUnique(boolean value) Sets the value of the 'Unique' attribute.voidsetUpperValue(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, sGetIDMethods inherited from interface java.lang.Comparable
compareToMethods 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, setSyncElementMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setIDMethods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalIDMethods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationTextMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliverMethods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraintsMethods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValueMethods 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:
-