de.armax.ax.devtools.uml
Class AXmultiplicity

java.lang.Object
  extended byde.armax.ax.devtools.uml.AXmultiplicity

public class AXmultiplicity
extends java.lang.Object

Class representing the multiplicity of association ends.

Use the static variables to get instances of this class representing the four possible values for multiplicity: 0..1, 1, 0..N or 1..N

Author:
Peter Wieland, ARMAX mindware GmbH
See Also:
AXassociationEnd

Field Summary
static java.lang.String INTERFACE
          The qualified name of this interface.
static AXmultiplicity MULT_0_TO_1
           
static int MULT_0_TO_1_VALUE
           
static AXmultiplicity MULT_0_TO_N
           
static int MULT_0_TO_N_VALUE
           
static AXmultiplicity MULT_1
           
static AXmultiplicity MULT_1_TO_N
           
static int MULT_1_TO_N_VALUE
           
static int MULT_1_VALUE
           
 
Method Summary
 boolean isAtLeastOne()
           
 boolean isAtMostOne()
           
 boolean isUnbounded()
           
 java.lang.String toString()
          Produce a human-readable printout of the multiplicity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERFACE

public static final java.lang.String INTERFACE

The qualified name of this interface.

See Also:
Constant Field Values

MULT_0_TO_1_VALUE

public static final int MULT_0_TO_1_VALUE
See Also:
Constant Field Values

MULT_1_VALUE

public static final int MULT_1_VALUE
See Also:
Constant Field Values

MULT_0_TO_N_VALUE

public static final int MULT_0_TO_N_VALUE
See Also:
Constant Field Values

MULT_1_TO_N_VALUE

public static final int MULT_1_TO_N_VALUE
See Also:
Constant Field Values

MULT_0_TO_1

public static final AXmultiplicity MULT_0_TO_1

MULT_1

public static final AXmultiplicity MULT_1

MULT_0_TO_N

public static final AXmultiplicity MULT_0_TO_N

MULT_1_TO_N

public static final AXmultiplicity MULT_1_TO_N
Method Detail

isAtMostOne

public boolean isAtMostOne()
Returns:
true id the upper limit is 1 (0..1 or 1)

isUnbounded

public boolean isUnbounded()
Returns:
true if there is no upper limit (0..N or 1..N)

isAtLeastOne

public boolean isAtLeastOne()
Returns:
true if the minimum value is 1 (1 or 1..N)

toString

public java.lang.String toString()
Produce a human-readable printout of the multiplicity



Copyright © 2003 ARMAX mindware GmbH. All Rights Reserved.