Package commandManager
Enum Class CommandMode
- All Implemented Interfaces:
Serializable
,Comparable<CommandMode>
,Constable
Contains information about mode of commands behavior
- Since:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCommands will use user-friendly interaction.Commands will use simple interaction w/o user-orientation. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandMode
Returns the enum constant of this class with the specified name.static CommandMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLI_UserMode
Commands will use user-friendly interaction. Envisage that it will be used with System.in scanner -
NonUserMode
Commands will use simple interaction w/o user-orientation. Envisage that it will be used with file streams, e.t.c.
-
-
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
-