scheduler.configuration
Enum PreferredWaitingTime

java.lang.Object
  extended by java.lang.Enum<PreferredWaitingTime>
      extended by scheduler.configuration.PreferredWaitingTime
All Implemented Interfaces:
Serializable, Comparable<PreferredWaitingTime>

public enum PreferredWaitingTime
extends Enum<PreferredWaitingTime>

A representation of the literals of the enumeration 'Preferred Waiting Time', and utility methods for working with them.

See Also:
ConfigurationPackage.getPreferredWaitingTime()

Enum Constant Summary
LONG
          The 'LONG' literal object.
SHORT
          The 'SHORT' literal object.
 
Field Summary
static int LONG_VALUE
          The 'LONG' literal value.
static int SHORT_VALUE
          The 'SHORT' literal value.
static List<PreferredWaitingTime> VALUES
          A public read-only list of all the 'Preferred Waiting Time' enumerators.
 
Method Summary
static PreferredWaitingTime get(int value)
          Returns the 'Preferred Waiting Time' literal with the specified integer value.
static PreferredWaitingTime get(String literal)
          Returns the 'Preferred Waiting Time' literal with the specified literal value.
static PreferredWaitingTime getByName(String name)
          Returns the 'Preferred Waiting Time' literal with the specified name.
 String getLiteral()
           
 String getName()
           
 int getValue()
           
 String toString()
          Returns the literal value of the enumerator, which is its string representation.
static PreferredWaitingTime valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PreferredWaitingTime[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LONG

public static final PreferredWaitingTime LONG
The 'LONG' literal object.

See Also:
LONG_VALUE

SHORT

public static final PreferredWaitingTime SHORT
The 'SHORT' literal object.

See Also:
SHORT_VALUE
Field Detail

LONG_VALUE

public static final int LONG_VALUE
The 'LONG' literal value.

If the meaning of 'LONG' literal object isn't clear, there really should be more of a description here...

See Also:
LONG, Constant Field Values

SHORT_VALUE

public static final int SHORT_VALUE
The 'SHORT' literal value.

If the meaning of 'SHORT' literal object isn't clear, there really should be more of a description here...

See Also:
SHORT, Constant Field Values

VALUES

public static final List<PreferredWaitingTime> VALUES
A public read-only list of all the 'Preferred Waiting Time' enumerators.

Method Detail

values

public static PreferredWaitingTime[] 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 (PreferredWaitingTime c : PreferredWaitingTime.values())
    System.out.println(c);

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

valueOf

public static PreferredWaitingTime valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public static PreferredWaitingTime get(String literal)
Returns the 'Preferred Waiting Time' literal with the specified literal value.


getByName

public static PreferredWaitingTime getByName(String name)
Returns the 'Preferred Waiting Time' literal with the specified name.


get

public static PreferredWaitingTime get(int value)
Returns the 'Preferred Waiting Time' literal with the specified integer value.


getValue

public int getValue()


getName

public String getName()


getLiteral

public String getLiteral()


toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<PreferredWaitingTime>