com.sonyericsson.hudson.plugins.gerrit.trigger.version
Enum GerritVersionChecker.Feature

java.lang.Object
  extended by java.lang.Enum<GerritVersionChecker.Feature>
      extended by 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
fileTrigger
          Triggering on files, added in Gerrit 2.3.
replicationEvents
          Replication events, added in Gerrit 2.9.
triggerOnDraftPublished
          Triggering on draft change published, added in Gerrit 2.5.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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.

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 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.


Copyright © 2004-2014. All Rights Reserved.