org.eclipse.tigerstripe.workbench.model.deprecated_
Enum IModelComponent.EMultiplicity

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

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

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


Enum Constant Summary
ONE
           
ONE_STAR
           
STAR
           
ZERO
           
ZERO_ONE
           
ZERO_STAR
           
 
Method Summary
static IModelComponent.EMultiplicity at(int index)
           
 java.lang.String getLabel()
          Return the label for an enumeration value.
static int indexOf(IModelComponent.EMultiplicity mult)
           
static int indexOf(java.lang.String multLiteral)
           
 boolean isArray()
           
static java.lang.String[] labels()
           
static IModelComponent.EMultiplicity parse(java.lang.String label)
          Given a String label, return an enumeration value.
static IModelComponent.EMultiplicity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IModelComponent.EMultiplicity[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

ZERO

public static final IModelComponent.EMultiplicity ZERO

ZERO_ONE

public static final IModelComponent.EMultiplicity ZERO_ONE

ZERO_STAR

public static final IModelComponent.EMultiplicity ZERO_STAR

STAR

public static final IModelComponent.EMultiplicity STAR

ONE

public static final IModelComponent.EMultiplicity ONE

ONE_STAR

public static final IModelComponent.EMultiplicity ONE_STAR
Method Detail

values

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

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

valueOf

public static IModelComponent.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

getLabel

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

Returns:
String - the label.

isArray

public boolean isArray()

parse

public static IModelComponent.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(IModelComponent.EMultiplicity mult)

indexOf

public static int indexOf(java.lang.String multLiteral)

at

public static IModelComponent.EMultiplicity at(int index)

labels

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