Last update: 2011-06-23

org.proteios.io
Enum NotificationConfiguration.Mode

java.lang.Object
  extended by java.lang.Enum<NotificationConfiguration.Mode>
      extended by org.proteios.io.NotificationConfiguration.Mode
All Implemented Interfaces:
Serializable, Comparable<NotificationConfiguration.Mode>
Enclosing class:
NotificationConfiguration

public static enum NotificationConfiguration.Mode
extends Enum<NotificationConfiguration.Mode>

The notification mode.


Enum Constant Summary
ALL_JOBS_FINISHED
          Notification after all jobs finished.
EVERY_FINISHED_JOB
          Notification after every finished job.
NEVER
          Notification never sent.
 
Method Summary
static NotificationConfiguration.Mode fromValue(int value)
          Get the NotificationConfiguration.Mode object when you know the integer code.
 int getValue()
          Get the integer value that is used when storing a NotificationConfiguration.Mode to the database.
 String toString()
           
static NotificationConfiguration.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotificationConfiguration.Mode[] 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

NEVER

public static final NotificationConfiguration.Mode NEVER
Notification never sent.


EVERY_FINISHED_JOB

public static final NotificationConfiguration.Mode EVERY_FINISHED_JOB
Notification after every finished job.


ALL_JOBS_FINISHED

public static final NotificationConfiguration.Mode ALL_JOBS_FINISHED
Notification after all jobs finished.

Method Detail

values

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

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

valueOf

public static NotificationConfiguration.Mode 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

fromValue

public static NotificationConfiguration.Mode fromValue(int value)
Get the NotificationConfiguration.Mode object when you know the integer code.

Parameters:
value - The integer value.
Returns:
The type object or null if the value is unknown

toString

public String toString()
Overrides:
toString in class Enum<NotificationConfiguration.Mode>

getValue

public int getValue()
Get the integer value that is used when storing a NotificationConfiguration.Mode to the database.

Returns:
The integer value of this type

Last update: 2011-06-23