Package nz.org.riskscape.engine.cli
Enum Class CliBootstrap.State
- All Implemented Interfaces:
Serializable
,Comparable<CliBootstrap.State>
,Constable
- Enclosing class:
- CliBootstrap
State machine (ahem) for cli bootrapping
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApplication home has been set - we know where all our files should beAn instance of an engine has been built and initializedThe plugins have been loaded and startedThe project(types, functions etc) has been built.The main initialization options have been parsedA terminal is available for output -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAllowedFrom
(CliBootstrap.State nextState) static CliBootstrap.State
Returns the enum constant of this class with the specified name.static CliBootstrap.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTHING
-
APPLICATION_HOME_SET
Application home has been set - we know where all our files should be -
TERMINAL_SET
A terminal is available for output -
ROOT_OPTIONS_SET
The main initialization options have been parsed -
PLUGINS_ACTIVATED
The plugins have been loaded and started -
ENGINE_BUILT
An instance of an engine has been built and initialized -
PROJECT_BUILT
The project(types, functions etc) has been built.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAllowedFrom
- Returns:
- true if the state transition is allowed from this state to the given next state
-
getAllowedFrom
-