Package dev.getelements.elements.setup
Enum Class SetupCommands
- All Implemented Interfaces:
Serializable
,Comparable<SetupCommands>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdds a new user to the database.Dumps the default properties for the server.Displays the overall help command.Runs an interactive shell.Updates an existing user in the database. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Class
<? extends SetupCommand> getCommandForName
(String name) static Stream
<SetupCommands> static SetupCommands
Returns the enum constant of this class with the specified name.static SetupCommands[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_USER
Adds a new user to the database. -
UPDATE_USER
Updates an existing user in the database. -
DUMP_DEFAULT_PROPERTIES
Dumps the default properties for the server. -
HELP
Displays the overall help command. -
SHELL
Runs an interactive shell.
-
-
Field Details
-
commandName
-
shellCommand
public final boolean shellCommand -
commandType
-
-
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
-
getCommandForName
-
streamShellCommands
-