public class CommentAdded extends ChangeBasedEvent implements GerritJsonEvent
change, patchSetaccount| Constructor and Description |
|---|
CommentAdded() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(net.sf.json.JSONObject json)
Takes a JSON object and fills its internal data-structure.
|
List<Approval> |
getApprovals()
Get the code review approvals associated with this Gerrit comment.
|
GerritEventType |
getEventType()
Returns what type of event it is.
|
boolean |
isScorable()
Returns if a score (code review or verify) can be submitted to Gerrit.
|
void |
setApprovals(List<Approval> approvals)
Set the code review approvals for this event.
|
equals, getChange, getFiles, getPatchSet, hashCode, setChange, setPatchsetgetAccount, setAccountaddListener, fireAllBuildsCompleted, fireBuildCompleted, fireBuildStarted, fireProjectTriggered, fireTriggerScanDone, fireTriggerScanStarting, getListeners, removeListenerpublic GerritEventType getEventType()
GerritEventgetEventType in interface GerritEventpublic List<Approval> getApprovals()
public void setApprovals(List<Approval> approvals)
approvals - the list of Approvals.public boolean isScorable()
GerritEventisScorable in interface GerritEventpublic void fromJson(net.sf.json.JSONObject json)
ChangeBasedEventfromJson in interface GerritJsonDTOfromJson in class ChangeBasedEventjson - the JSON Object.Copyright © 2004-2015 Hudson. All Rights Reserved.