UML.Semantic.Foundation.DataTypes
Class MultiplicityRange

java.lang.Object
  |
  +--UML.Semantic.Foundation.DataTypes.MultiplicityRange

public class MultiplicityRange
extends java.lang.Object

In the metamodel a MultiplicityRange defines a range of integers. The upper bound of the range cannot be below the lower bound.


Field Summary
static int UNLIMITED
          Used to express an unlimited bound.
static int UNSPECIFIED
          Used to express an unspecified bound.
 
Constructor Summary
MultiplicityRange(java.lang.String lower)
           
MultiplicityRange(java.lang.String lower, java.lang.String upper)
           
 
Method Summary
 java.lang.String getElementType()
           
 int getLower()
          Gets the lower bound value.
 int getUpper()
          Gets the upper bound value.
 void setElementType(java.lang.String type)
           
 void setLower(java.lang.String value)
          Sets the lower bound to the given value.
 void setUpper(java.lang.String value)
          Sets the upper bound to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSPECIFIED

public static final int UNSPECIFIED
Used to express an unspecified bound.

See Also:
Constant Field Values

UNLIMITED

public static final int UNLIMITED
Used to express an unlimited bound.

See Also:
Constant Field Values
Constructor Detail

MultiplicityRange

public MultiplicityRange(java.lang.String lower)

MultiplicityRange

public MultiplicityRange(java.lang.String lower,
                         java.lang.String upper)
Method Detail

setLower

public void setLower(java.lang.String value)
Sets the lower bound to the given value.


setUpper

public void setUpper(java.lang.String value)
Sets the upper bound to the given value.


getLower

public int getLower()
Gets the lower bound value.

Returns:
The lower bound.

getUpper

public int getUpper()
Gets the upper bound value.

Returns:
The upper bound.

setElementType

public void setElementType(java.lang.String type)

getElementType

public java.lang.String getElementType()