Enum Class TrackerSourceKind
- All Implemented Interfaces:
Serializable,Comparable<TrackerSourceKind>,Constable
The built-in
TrackerSource kinds selectable from the trackerLens DSL's
source property, each paired with its canonical, ordered stage sequence.
A third TrackerSource implementation can be added later purely by adding a constant
here (or, if it should never be DSL-selectable, by using it outside this enum entirely) - nothing
in GenerateTrackerLensTask or the dashboard renderer is specific to either built-in kind,
since both only ever operate on TrackerSource and
com.arc_e_tect.gradle.trackerlens.tracker.LifecycleRecord.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAPI contract progress history, stagesdeclared,implemented,verified.Gherkin scenario progress history, stageslisted,defined,implemented. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newTrackerSourceinstance of this kind.The stage that marks an item as complete, forProgressProjector.stages()This kind's canonical stage sequence, in order.static TrackerSourceKindReturns the enum constant of this class with the specified name.static TrackerSourceKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GHERKIN_SCENARIO
Gherkin scenario progress history, stageslisted,defined,implemented. -
API_CONTRACT
API contract progress history, stagesdeclared,implemented,verified.
-
-
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
-
stages
This kind's canonical stage sequence, in order.- Returns:
- the ordered stage names
-
finalStage
The stage that marks an item as complete, forProgressProjector.- Returns:
- the final stage name
-
createSource
Creates a newTrackerSourceinstance of this kind.- Returns:
- a new tracker source
-