public enum JobRunMode extends java.lang.Enum<JobRunMode>
Enum Constant and Description |
---|
RUNONCE
run once mode.
|
STANDARD
standard mode (default).
|
Modifier and Type | Field and Description |
---|---|
static java.util.List<JobRunMode> |
ALL_MODES
list of all job run modes, in default priority order.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<JobRunMode> |
parseModes(AnySeq modesAny)
convert sequence of mode values to list of JobRunModes.
|
static AnySeq |
toAny(java.util.Collection<JobRunMode> modes)
convert modes to corresponding sequence of string values.
|
java.lang.String |
toString() |
static JobRunMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JobRunMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobRunMode STANDARD
public static final JobRunMode RUNONCE
public static final java.util.List<JobRunMode> ALL_MODES
public static JobRunMode[] values()
for (JobRunMode c : JobRunMode.values()) System.out.println(c);
public static JobRunMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<JobRunMode>
public static java.util.List<JobRunMode> parseModes(AnySeq modesAny) throws InvalidDefinitionException
modesAny
- may be null.InvalidDefinitionException
- if input contains non-value anys or invalid values.public static AnySeq toAny(java.util.Collection<JobRunMode> modes)
modes
- must not be null.