de.interactive_instruments.ShapeChange
Enum ProcessMode

java.lang.Object
  extended by java.lang.Enum<ProcessMode>
      extended by de.interactive_instruments.ShapeChange.ProcessMode
All Implemented Interfaces:
Serializable, Comparable<ProcessMode>

public enum ProcessMode
extends Enum<ProcessMode>

Enumeration of the execution modes available for ShapeChange processes.

Author:
echterhoff

Enum Constant Summary
diagnosticsonly
          Signifies that the process shall only be run for diagnostic purpose.
disabled
          Signifies that the process shall not be executed.
enabled
          Signifies that the process shall be executed.
 
Method Summary
static ProcessMode fromString(String mode)
          Parses the given string to identify if it represents one of the declared process modes.
static ProcessMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProcessMode[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

enabled

public static final ProcessMode enabled
Signifies that the process shall be executed.


disabled

public static final ProcessMode disabled
Signifies that the process shall not be executed.


diagnosticsonly

public static final ProcessMode diagnosticsonly
Signifies that the process shall only be run for diagnostic purpose.

Method Detail

values

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

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

valueOf

public static ProcessMode 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

fromString

public static ProcessMode fromString(String mode)
Parses the given string to identify if it represents one of the declared process modes.

Parameters:
mode - String to check if it is one of the modes represented by this enumeration.
Returns:
The ProcessMode that represents the given String, or null.


Copyright © 2015. All rights reserved.