Enum Class CLIFlags
- All Implemented Interfaces:
Serializable, Comparable<CLIFlags>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCommand-line flag to enforce an extended initialization pause during system boot sequences to prevent resource contention.Command-line argument to specify a custom directory path hosting configuration files, profiles, and sync maps.Command-line flag to activate verbose diagnostic logging streams to the standard console output.Command-line flag to mirror or redirect diagnostic debug streams into a local file system log repository.Fallback flag used when no matching command-line argument is detected to prevent NullPointerExceptions. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLIFlagsfromArgument(String arg) Resolves a raw command-line argument string to its corresponding strongly-typedCLIFlagsrepresentation.Retrieves the verbose argument identifier prefix.Retrieves the single-character mnemonic alias prefix.static CLIFlagsReturns the enum constant of this class with the specified name.static CLIFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONFIG_DIR
Command-line argument to specify a custom directory path hosting configuration files, profiles, and sync maps. -
BOOT_DELAY
Command-line flag to enforce an extended initialization pause during system boot sequences to prevent resource contention. -
DEBUG
Command-line flag to activate verbose diagnostic logging streams to the standard console output. -
DEBUG_TO_FILE
Command-line flag to mirror or redirect diagnostic debug streams into a local file system log repository. -
NONE
Fallback flag used when no matching command-line argument is detected to prevent NullPointerExceptions.
-
-
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
-
fromArgument
Resolves a raw command-line argument string to its corresponding strongly-typedCLIFlagsrepresentation.This method serves as the central factory for command-line argument mapping and employs a defensive, null-safe lookup strategy. It supports exact match evaluation for standardized flags as well as prefix-based evaluation to handle parameterized switches (such as directory paths attached directly to the configuration argument).
If the input string is
null, blank, or fails to match any registered application switch, this method returnsNONEto ensure safe downstream processing without the risk of encountering aNullPointerException. -
getLongFlag
Retrieves the verbose argument identifier prefix.- Returns:
- The long flag string
-
getShortFlag
Retrieves the single-character mnemonic alias prefix.- Returns:
- The short flag string
-