Enum Class PhaseVersion
- All Implemented Interfaces:
Serializable
,Comparable<PhaseVersion>
,Constable
Used for restarting phases and indicate which 'version' of the phase should be restarted. For example: LATEST means that restarting should be done from the most recent phase. This
is determined by checking if the Phase has been copied or not (ie,
Phase.isPhaseCopied()
).-
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 List<PhaseVersion>
determinePhaseVersion
(Phase phase) Given a phase, determine its phaseVersion(s).static PhaseVersion
fromString
(String s) Used by JAX-RS binding The input is being uppercased to allow for case insensitivitystatic boolean
isPhaseVersion
(Phase phase, PhaseVersion phaseVersion) Determines the phaseVersion of the given phase and compares it with the given phaseVersion parameter.static PhaseVersion
Returns the enum constant of this class with the specified name.static PhaseVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LATEST
Copy the most recent version of the phase. Determined by checking if the phase has not been copied yet (ie, there are no other phases pointing to this phase). See alsoPhase.isPhaseCopied()
-
ORIGINAL
Copy the original (first) version of the phase. Determined by checking if the phase origin is null. -
ALL
This is the 'old' behavior. Copy ALL the phases between 2 given phases. Regardless of versioning.
-
-
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
-
fromString
Used by JAX-RS binding The input is being uppercased to allow for case insensitivity- Parameters:
s
-- Returns:
-
determinePhaseVersion
Given a phase, determine its phaseVersion(s). There can be more than one, in the case that a phase is the original one and also the most recent.- Parameters:
phase
-- Returns:
-
isPhaseVersion
Determines the phaseVersion of the given phase and compares it with the given phaseVersion parameter.- Parameters:
phase
-phaseVersion
-- Returns:
-