Package com.redwood.scheduler.api.rtx
Enum RTXReader.StrictMode
- java.lang.Object
-
- java.lang.Enum<RTXReader.StrictMode>
-
- com.redwood.scheduler.api.rtx.RTXReader.StrictMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RTXReader.StrictMode>
- Enclosing class:
- RTXReader
public static enum RTXReader.StrictMode extends Enum<RTXReader.StrictMode>
Control over how strictly the specification is interpreted.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LogContinue
Deprecated.LogRuntimeException
When the RTX is invalid, then do log the error and throw a RuntimeExceptionLogTerminate
Deprecated.RuntimeException
When the RTX is invalid, then do throw a RuntimeException
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doLog()
boolean
doThrow()
boolean
returnValue()
static RTXReader.StrictMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RTXReader.StrictMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RuntimeException
public static final RTXReader.StrictMode RuntimeException
When the RTX is invalid, then do throw a RuntimeException
-
LogRuntimeException
public static final RTXReader.StrictMode LogRuntimeException
When the RTX is invalid, then do log the error and throw a RuntimeException
-
LogContinue
@Deprecated public static final RTXReader.StrictMode LogContinue
Deprecated.When an exception occurs while reading RTX do log the error, but continue trying to read the RTX. This is not intended for production use and is only for testing purposes.
-
LogTerminate
@Deprecated public static final RTXReader.StrictMode LogTerminate
Deprecated.When an exception occurs while reading RTX do log the error and stop reading. This might throw an exception. This is not intended for production use and is only for testing purposes.
-
-
Method Detail
-
values
public static RTXReader.StrictMode[] 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 (RTXReader.StrictMode c : RTXReader.StrictMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RTXReader.StrictMode 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 nameNullPointerException
- if the argument is null
-
doLog
public boolean doLog()
-
doThrow
public boolean doThrow()
-
returnValue
public boolean returnValue()
-
-