Enum GerritVersionChecker.Feature

java.lang.Object
java.lang.Enum<GerritVersionChecker.Feature>
com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker.Feature
All Implemented Interfaces:
Serializable, Comparable<GerritVersionChecker.Feature>
Enclosing class:
GerritVersionChecker

public static enum GerritVersionChecker.Feature extends Enum<GerritVersionChecker.Feature>
The feature version we want to compare the current Gerrit version with.
  • Enum Constant Details

    • fileTrigger

      public static final GerritVersionChecker.Feature fileTrigger
      Triggering on files, added in Gerrit 2.3.
    • triggerOnDraftPublished

      public static final GerritVersionChecker.Feature triggerOnDraftPublished
      Triggering on draft change published, added in Gerrit 2.5.
    • replicationEvents

      public static final GerritVersionChecker.Feature replicationEvents
      Replication events, added in Gerrit 2.9.
    • projectCreatedEvents

      public static final GerritVersionChecker.Feature projectCreatedEvents
      Project created events, added in Gerrit 2.12.
    • commentAlwaysApproval

      public static final GerritVersionChecker.Feature commentAlwaysApproval
      Gerrit CommentAdded always contains approval information, added in Gerrit 2.13.
    • rerunCheck

      public static final GerritVersionChecker.Feature rerunCheck
      Gerrit rerun-check event, added in checks for gerrit-3.3.
  • Method Details

    • values

      public static GerritVersionChecker.Feature[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GerritVersionChecker.Feature valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
      Human readable name.
      Returns:
      the display name.
    • getVersion

      public String getVersion()
      The required version string.
      Returns:
      the version.