|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GerritEventType>
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.GerritEventType
public enum GerritEventType
Representation of the type of event, if they are interesting and what class to use to parse the JSON string.
| Enum Constant Summary | |
|---|---|
CHANGE_ABANDONED
A change-abandoned event. |
|
CHANGE_MERGED
A change-merged event. |
|
COMMENT_ADDED
A comment-added event. |
|
DRAFT_PUBLISHED
A draft-published event. |
|
PATCHSET_CREATED
A patchset-created event. |
|
REF_UPDATED
A ref-updated event. |
|
| Method Summary | |
|---|---|
static GerritEventType |
findByTypeValue(String typeValue)
Finds the event type for the specified type-value. |
Class<? extends GerritJsonEvent> |
getEventRepresentative()
Gets the DTO class that represents this kind of event. |
static GerritEventType[] |
getInterestingEventTypes()
Lists all event types that are interesting. |
String |
getTypeValue()
The value of the type property in the JSON object. |
boolean |
isInteresting()
If this event type is interesting from a functionality perspective. |
static GerritEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GerritEventType[] |
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 |
|---|
public static final GerritEventType PATCHSET_CREATED
public static final GerritEventType DRAFT_PUBLISHED
public static final GerritEventType CHANGE_ABANDONED
public static final GerritEventType CHANGE_MERGED
public static final GerritEventType COMMENT_ADDED
public static final GerritEventType REF_UPDATED
| Method Detail |
|---|
public static GerritEventType[] values()
for (GerritEventType c : GerritEventType.values()) System.out.println(c);
public static GerritEventType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getTypeValue()
public boolean isInteresting()
public Class<? extends GerritJsonEvent> getEventRepresentative()
public static GerritEventType findByTypeValue(String typeValue)
typeValue - the value of the JSON object's type property.
public static GerritEventType[] getInterestingEventTypes()
isInteresting()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||