com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events
Class ChangeMerged
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.lifecycle.GerritEventLifecycle
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.GerritTriggeredEvent
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.ChangeBasedEvent
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.ChangeMerged
- All Implemented Interfaces:
- GerritEvent, GerritJsonDTO, GerritJsonEvent
public class ChangeMerged
- extends ChangeBasedEvent
- implements GerritJsonEvent
A DTO representation of the change-merged Gerrit Event.
- Author:
- David Pursehouse <david.pursehouse@sonyericsson.com>
|
Constructor Summary |
ChangeMerged()
Default constructor. |
ChangeMerged(net.sf.json.JSONObject json)
Constructor that fills data directly. |
|
Method Summary |
void |
fromJson(net.sf.json.JSONObject json)
Takes a JSON object and fills its internal data-structure. |
GerritEventType |
getEventType()
Returns what type of event it is. |
boolean |
isScorable()
Returns if a score (code review or verify) can be submitted to Gerrit. |
ChangeMerged
public ChangeMerged()
- Default constructor.
ChangeMerged
public ChangeMerged(net.sf.json.JSONObject json)
- Constructor that fills data directly.
- Parameters:
json - the JSON Object- See Also:
fromJson(net.sf.json.JSONObject)
getEventType
public GerritEventType getEventType()
- Description copied from interface:
GerritEvent
- Returns what type of event it is.
- Specified by:
getEventType in interface GerritEvent
- Returns:
- the event type.
isScorable
public boolean isScorable()
- Description copied from interface:
GerritEvent
- Returns if a score (code review or verify) can be submitted to Gerrit.
- Specified by:
isScorable in interface GerritEvent
- Returns:
- true if so, otherwise false
fromJson
public void fromJson(net.sf.json.JSONObject json)
- Description copied from class:
ChangeBasedEvent
- Takes a JSON object and fills its internal data-structure.
- Specified by:
fromJson in interface GerritJsonDTO- Overrides:
fromJson in class ChangeBasedEvent
- Parameters:
json - the JSON Object.
Copyright © 2004-2012 Hudson. All Rights Reserved.