Enum Class TrackerSourceKind
- All Implemented Interfaces:
Serializable,Comparable<TrackerSourceKind>,Constable
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,
beyond stagesFormADependencyChain() choosing how
com.arc_e_tect.gradle.trackerlens.dashboard.TrackerViewFactory computes each metric
card's count - both otherwise 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.booleanWhether an item of this kind can only reach a later stage by having already passed through every earlier one, so its single current (furthest-reached) stage is a meaningful summary of its status.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
-
stagesFormADependencyChain
public boolean stagesFormADependencyChain()Whether an item of this kind can only reach a later stage by having already passed through every earlier one, so its single current (furthest-reached) stage is a meaningful summary of its status.True for
GHERKIN_SCENARIO: a scenario is implemented only after being defined, and defined only after being listed, in the real authoring workflow - even though the recorded data can skip an intermediate stamp. False forAPI_CONTRACT: declared, implemented, and verified are independent conditions an endpoint may satisfy in any combination (e.g. implemented without being declared), so no single "current stage" captures its status - the dashboard's built-in metric cards use cumulative "reached at least this stage" counts instead.- Returns:
trueif this kind's stages form a dependency chain
-
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
-