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 Summary
Enum Constants Enum Constant Description commentAlwaysApproval
Gerrit CommentAdded always contains approval information, added in Gerrit 2.13.fileTrigger
Triggering on files, added in Gerrit 2.3.projectCreatedEvents
Project created events, added in Gerrit 2.12.replicationEvents
Replication events, added in Gerrit 2.9.rerunCheck
Gerrit rerun-check event, added in checks for gerrit-3.3.triggerOnDraftPublished
Triggering on draft change published, added in Gerrit 2.5.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Human readable name.String
getVersion()
The required version string.static GerritVersionChecker.Feature
valueOf(String name)
Returns the enum constant of this type with the specified name.static GerritVersionChecker.Feature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static GerritVersionChecker.Feature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GerritVersionChecker.Feature c : GerritVersionChecker.Feature.values()) System.out.println(c);
- 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 nameNullPointerException
- 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.
-
-