Enum Class WsGoal

java.lang.Object
java.lang.Enum<WsGoal>
network.ike.plugin.ws.WsGoal
All Implemented Interfaces:
Serializable, Comparable<WsGoal>, Constable

public enum WsGoal extends Enum<WsGoal>
Compile-time identity for every ws:* goal in this plugin. Each value wraps the bare goal name, the mojo class that implements it, and a short human description.

Callers that invoke ws goals from Java — for subprocess exec, for the WorkspaceReportSpec a goal returns, for javadoc examples that survive a rename — should reference these enum values rather than string literals. Find Usages then surfaces every consumer when a goal is renamed, and the exhaustiveness guard in WsGoalExhaustivenessTest ensures the enum stays in lockstep with @Mojo declarations.

See issue #165.

  • Enum Constant Details

    • ADD

      public static final WsGoal ADD
    • ALIGN_DRAFT

      public static final WsGoal ALIGN_DRAFT
    • ALIGN_PUBLISH

      public static final WsGoal ALIGN_PUBLISH
    • CHECK_BRANCH

      public static final WsGoal CHECK_BRANCH
    • CHECKPOINT_DRAFT

      public static final WsGoal CHECKPOINT_DRAFT
    • CHECKPOINT_PUBLISH

      public static final WsGoal CHECKPOINT_PUBLISH
    • CLEANUP_DRAFT

      public static final WsGoal CLEANUP_DRAFT
    • CLEANUP_PUBLISH

      public static final WsGoal CLEANUP_PUBLISH
    • COMMIT

      public static final WsGoal COMMIT
    • FEATURE_ABANDON_DRAFT

      public static final WsGoal FEATURE_ABANDON_DRAFT
    • FEATURE_ABANDON_PUBLISH

      public static final WsGoal FEATURE_ABANDON_PUBLISH
    • FEATURE_FINISH_MERGE_DRAFT

      public static final WsGoal FEATURE_FINISH_MERGE_DRAFT
    • FEATURE_FINISH_MERGE_PUBLISH

      public static final WsGoal FEATURE_FINISH_MERGE_PUBLISH
    • FEATURE_FINISH_SQUASH_DRAFT

      public static final WsGoal FEATURE_FINISH_SQUASH_DRAFT
    • FEATURE_FINISH_SQUASH_PUBLISH

      public static final WsGoal FEATURE_FINISH_SQUASH_PUBLISH
    • FEATURE_START_DRAFT

      public static final WsGoal FEATURE_START_DRAFT
    • FEATURE_START_PUBLISH

      public static final WsGoal FEATURE_START_PUBLISH
    • GRAPH

      public static final WsGoal GRAPH
    • HELP

      public static final WsGoal HELP
    • LINT

      public static final WsGoal LINT
    • OVERVIEW

      public static final WsGoal OVERVIEW
    • POST_RELEASE

      public static final WsGoal POST_RELEASE
    • PULL

      public static final WsGoal PULL
    • PUSH

      public static final WsGoal PUSH
    • RECONCILE_BRANCHES_DRAFT

      public static final WsGoal RECONCILE_BRANCHES_DRAFT
    • RECONCILE_BRANCHES_PUBLISH

      public static final WsGoal RECONCILE_BRANCHES_PUBLISH
    • REFRESH_MAIN

      public static final WsGoal REFRESH_MAIN
    • RELEASE_DRAFT

      public static final WsGoal RELEASE_DRAFT
    • RELEASE_NOTES

      public static final WsGoal RELEASE_NOTES
    • RELEASE_PUBLISH

      public static final WsGoal RELEASE_PUBLISH
    • RELEASE_STATUS

      public static final WsGoal RELEASE_STATUS
    • REMOVE

      public static final WsGoal REMOVE
    • REPORT

      public static final WsGoal REPORT
    • SCAFFOLD_DRAFT

      public static final WsGoal SCAFFOLD_DRAFT
    • SCAFFOLD_INIT

      public static final WsGoal SCAFFOLD_INIT
    • SCAFFOLD_PUBLISH

      public static final WsGoal SCAFFOLD_PUBLISH
    • STIGNORE

      public static final WsGoal STIGNORE
    • SWITCH_DRAFT

      public static final WsGoal SWITCH_DRAFT
    • SWITCH_PUBLISH

      public static final WsGoal SWITCH_PUBLISH
    • SYNC

      public static final WsGoal SYNC
    • UPDATE_FEATURE_DRAFT

      public static final WsGoal UPDATE_FEATURE_DRAFT
    • UPDATE_FEATURE_PUBLISH

      public static final WsGoal UPDATE_FEATURE_PUBLISH
    • VERIFY_CONVERGENCE

      public static final WsGoal VERIFY_CONVERGENCE
  • Field Details

    • PLUGIN_PREFIX

      public static final String PLUGIN_PREFIX
      Shared ws: prefix for all goals in this plugin.
      See Also:
  • Method Details

    • values

      public static WsGoal[] 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 WsGoal 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
    • goalName

      public String goalName()
      The bare goal name as it appears in @Mojo(name = ...).
    • qualified

      public String qualified()
      The fully-qualified goal invocation, e.g. "ws:align-publish".
    • mojoClass

      public Class<? extends org.apache.maven.api.plugin.Mojo> mojoClass()
      The mojo class that implements this goal.
    • description

      public String description()
      One-line human description of what this goal does.