org.eclipse.tigerstripe.model
Enum IAssociationEnd.EMultiplicity

java.lang.Object
  extended by java.lang.Enum<IAssociationEnd.EMultiplicity>
      extended by org.eclipse.tigerstripe.model.IAssociationEnd.EMultiplicity
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IAssociationEnd.EMultiplicity>
Enclosing interface:
IAssociationEnd

public static enum IAssociationEnd.EMultiplicity
extends java.lang.Enum<IAssociationEnd.EMultiplicity>

An enum of the possible values for the multiplicity of an end.


Enum Constant Summary
ONE
           
ONE_STAR
           
STAR
           
ZERO
           
ZERO_ONE
           
ZERO_STAR
           
 
Method Summary
static IAssociationEnd.EMultiplicity at(int index)
           
 java.lang.String getLabel()
          Return the label for an enumeration value.
static int indexOf(IAssociationEnd.EMultiplicity mult)
           
static java.lang.String[] labels()
           
static IAssociationEnd.EMultiplicity parse(java.lang.String label)
          Given a String label, return an enumeration value.
static IAssociationEnd.EMultiplicity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IAssociationEnd.EMultiplicity[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ONE

public static final IAssociationEnd.EMultiplicity ONE

ZERO

public static final IAssociationEnd.EMultiplicity ZERO

ZERO_ONE

public static final IAssociationEnd.EMultiplicity ZERO_ONE

ZERO_STAR

public static final IAssociationEnd.EMultiplicity ZERO_STAR

ONE_STAR

public static final IAssociationEnd.EMultiplicity ONE_STAR

STAR

public static final IAssociationEnd.EMultiplicity STAR
Method Detail

values

public static IAssociationEnd.EMultiplicity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IAssociationEnd.EMultiplicity c : IAssociationEnd.EMultiplicity.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IAssociationEnd.EMultiplicity valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getLabel

public java.lang.String getLabel()
Return the label for an enumeration value.

Returns:
String - the label.

parse

public static IAssociationEnd.EMultiplicity parse(java.lang.String label)
Given a String label, return an enumeration value. Returns null if no enumeration corresponds to the label.

Parameters:
label -
Returns:
the enumeration value that corresponds to the label.

indexOf

public static int indexOf(IAssociationEnd.EMultiplicity mult)

at

public static IAssociationEnd.EMultiplicity at(int index)

labels

public static java.lang.String[] labels()