Package com.lpvs.entity.enums
Enum Class LPVSPullRequestAction
- All Implemented Interfaces:
Serializable
,Comparable<LPVSPullRequestAction>
,Constable
Represents the actions that can be performed on a pull request in the LPVS system.
Each action corresponds to a specific event in the lifecycle of a pull request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the action of triggering a scan of a pull request by automation bot.Represents the action of closing a pull request.Represents the action of opening a pull request.Represents the action of reopening a closed pull request.Represents the action of triggering a rescan of a pull request.Represents the action of triggering a manual single scan of a pull request.Represents the action of updating a pull request. -
Method Summary
Modifier and TypeMethodDescriptionstatic LPVSPullRequestAction
convertFrom
(String action) Converts a string representation of a pull request action to the corresponding enum constant.Gets the string representation of the pull request action.static LPVSPullRequestAction
Returns the enum constant of this class with the specified name.static LPVSPullRequestAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
Represents the action of opening a pull request. -
REOPEN
Represents the action of reopening a closed pull request. -
CLOSE
Represents the action of closing a pull request. -
UPDATE
Represents the action of updating a pull request. -
RESCAN
Represents the action of triggering a rescan of a pull request. -
SINGLE_SCAN
Represents the action of triggering a manual single scan of a pull request. -
BOT_SCAN
Represents the action of triggering a scan of a pull request by automation bot.
-
-
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
-
getPullRequestAction
Gets the string representation of the pull request action.- Returns:
- The string representation of the pull request action.
-
convertFrom
Converts a string representation of a pull request action to the corresponding enum constant.- Parameters:
action
- The string representation of the pull request action.- Returns:
- The corresponding LPVSPullRequestAction enum constant, or null if not found.
-