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

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:
Model:
abstract="true" annotation="MOF package='classes.mdkernel'"
Generated:
  • 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

      @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:
      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:
      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:
      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:
      Generated: