Enum Class VcsState.Action
- All Implemented Interfaces:
Serializable, Comparable<VcsState.Action>, Constable
- Enclosing class:
VcsState
Actions written to the state file by hooks and plugin goals.
Each constant maps to a lowercase label written to the
.ike/vcs-state properties file. Parsing from the file
is case-insensitive via fromString(String).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VcsState.ActionfromString(String value) Parse an action string case-insensitively.label()The lowercase label written to the state file.static VcsState.ActionReturns the enum constant of this class with the specified name.static VcsState.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMIT
-
PUSH
-
FEATURE_START
-
FEATURE_FINISH
-
SWITCH
-
RELEASE
-
CHECKPOINT
-
-
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
-
label
The lowercase label written to the state file.- Returns:
- the action label (e.g., "commit", "feature-start")
-
fromString
Parse an action string case-insensitively.Normalizes the input (uppercase, hyphens to underscores) and delegates to
valueOf(String).- Parameters:
value- the action string from the state file (e.g., "commit", "feature-start")- Returns:
- the matching Action
- Throws:
IllegalArgumentException- if no match is found
-