org.unitils.spring.batch
Enum BatchOption

java.lang.Object
  extended by java.lang.Enum<BatchOption>
      extended by org.unitils.spring.batch.BatchOption
All Implemented Interfaces:
Serializable, Comparable<BatchOption>

public enum BatchOption
extends Enum<BatchOption>

Enumerations for batch options.

Since:
1.0.0
Author:
Jef Verelst, Jeroen Horemans, Thomas De Rycke, Willemijn Wouters, Bruno Bouku

Enum Constant Summary
ABANDON
          option for abandon.
NEXT
          option for next.
NONE
          indication of no options.
RESTART
          option for restart.
STOP
          option for stop.
 
Method Summary
 String value()
           
static BatchOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BatchOption[] 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

NONE

public static final BatchOption NONE
indication of no options.


RESTART

public static final BatchOption RESTART
option for restart.


NEXT

public static final BatchOption NEXT
option for next.


ABANDON

public static final BatchOption ABANDON
option for abandon.


STOP

public static final BatchOption STOP
option for stop.

Method Detail

values

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

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

valueOf

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

value

public String value()
Returns:
String


Copyright © 2014. All Rights Reserved.