public enum GerritEventType extends Enum<GerritEventType>
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 nameNullPointerException - 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()Copyright © 2004-2015 Hudson. All Rights Reserved.