Enum Class CliBootstrap.State

java.lang.Object
java.lang.Enum<CliBootstrap.State>
nz.org.riskscape.engine.cli.CliBootstrap.State
All Implemented Interfaces:
Serializable, Comparable<CliBootstrap.State>, Constable
Enclosing class:
CliBootstrap

public static enum CliBootstrap.State extends Enum<CliBootstrap.State>

State machine (ahem) for cli bootrapping

  • Enum Constant Details

    • NOTHING

      public static final CliBootstrap.State NOTHING
    • APPLICATION_HOME_SET

      public static final CliBootstrap.State APPLICATION_HOME_SET
      Application home has been set - we know where all our files should be
    • TERMINAL_SET

      public static final CliBootstrap.State TERMINAL_SET
      A terminal is available for output
    • ROOT_OPTIONS_SET

      public static final CliBootstrap.State ROOT_OPTIONS_SET
      The main initialization options have been parsed
    • PLUGINS_ACTIVATED

      public static final CliBootstrap.State PLUGINS_ACTIVATED
      The plugins have been loaded and started
    • ENGINE_BUILT

      public static final CliBootstrap.State ENGINE_BUILT
      An instance of an engine has been built and initialized
    • PROJECT_BUILT

      public static final CliBootstrap.State PROJECT_BUILT
      The project(types, functions etc) has been built.
  • Method Details

    • values

      public static CliBootstrap.State[] 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

      public static CliBootstrap.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isAllowedFrom

      public boolean isAllowedFrom(CliBootstrap.State nextState)
      Returns:
      true if the state transition is allowed from this state to the given next state
    • getAllowedFrom

      public CliBootstrap.State[] getAllowedFrom()