Enum Class TrackerSourceKind

java.lang.Object
java.lang.Enum<TrackerSourceKind>
com.arc_e_tect.gradle.trackerlens.TrackerSourceKind
All Implemented Interfaces:
Serializable, Comparable<TrackerSourceKind>, Constable

public enum TrackerSourceKind extends Enum<TrackerSourceKind>
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.

  • Enum Constant Details

    • GHERKIN_SCENARIO

      public static final TrackerSourceKind GHERKIN_SCENARIO
      Gherkin scenario progress history, stages listed, defined, implemented.
    • API_CONTRACT

      public static final TrackerSourceKind API_CONTRACT
      API contract progress history, stages declared, implemented, verified.
  • Method Details

    • values

      public static TrackerSourceKind[] 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

      public static TrackerSourceKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • stages

      public List<String> stages()
      This kind's canonical stage sequence, in order.
      Returns:
      the ordered stage names
    • finalStage

      public String finalStage()
      The stage that marks an item as complete, for ProgressProjector.
      Returns:
      the final stage name
    • createSource

      public TrackerSource createSource()
      Creates a new TrackerSource instance of this kind.
      Returns:
      a new tracker source