Package cdc.issues.answers
Enum Class IssueTransition
- All Implemented Interfaces:
Serializable,Comparable<IssueTransition>,Constable
Enumeration of possible status/resolution transitions.
- Author:
- Damien Carbonne
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<IssueTransition>getTransitionsFrom(IssueStatus status, IssueResolution resolution) Returns a set of transitions that can be applied from a given starting (status, resolution) point.booleanbooleanisManual()booleanisValidSource(IssueStatus status, IssueResolution resolution) Returnstrueif a (status, resolution) pair is a valid source state to trigger this transition.static IssueTransitionReturns the enum constant of this class with the specified name.static IssueTransition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONFIRM
-
WAIT
-
RESOLVE_AS_FIXED
-
RESOLVE_AS_WONT_FIX
-
RESOLVE_AS_FALSE_POSITIVE
-
REOPEN
-
OPEN
-
CLOSE_AS_FIXED
-
CLOSE_AS_REMOVED
-
CLOSE_AS_WONT_FIX
-
CLOSE_AS_FALSE_POSITIVE
-
-
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
-
isManual
public boolean isManual()- Returns:
trueif this transition can be triggered manually.
-
isAutomatic
public boolean isAutomatic()- Returns:
trueif this transition can be triggered automatically.
-
isValidSource
Returnstrueif a (status, resolution) pair is a valid source state to trigger this transition.- Parameters:
status- The status.resolution- The resolution.- Returns:
trueif(status, resolution)pair is a valid source state to trigger this transition
-
getTargetStatus
- Returns:
- The status reached after applying this transition.
-
getTargetResolution
- Returns:
- The resolution reached after applying this transition.
-
getTransitionsFrom
public static Set<IssueTransition> getTransitionsFrom(IssueStatus status, IssueResolution resolution) Returns a set of transitions that can be applied from a given starting (status, resolution) point.- Parameters:
status- The starting status.resolution- The starting resolution.- Returns:
- The set of transition that can be applied from
(
status,resolution).
-