|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.attr.Change
public class Change
Represents a Gerrit JSON Change DTO. The Gerrit change the event is related to.
| Constructor Summary | |
|---|---|
Change()
Default constructor. |
|
Change(net.sf.json.JSONObject json)
Constructor that fills with data directly. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
void |
fromJson(net.sf.json.JSONObject json)
Takes a JSON object and fills its internal data-structure. |
String |
getBranch()
Branch name within project. |
String |
getId()
Change identifier. |
String |
getNumber()
Deprecated. because the Gerrit documentation says so. |
Account |
getOwner()
Owner in account attribute. |
String |
getProject()
Project path in Gerrit. |
String |
getSubject()
Description of change. |
String |
getUrl()
Canonical URL to reach this change. |
int |
hashCode()
|
void |
setBranch(String branch)
Branch name within project. |
void |
setId(String id)
Change identifier. |
void |
setNumber(String number)
Deprecated. because the Gerrit documentation says so. |
void |
setOwner(Account owner)
Owner in account attribute. |
void |
setProject(String project)
Project path in Gerrit. |
void |
setSubject(String subject)
Description of change. |
void |
setUrl(String url)
Canonical URL to reach this change. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Change()
public Change(net.sf.json.JSONObject json)
json - the JSON Object with corresponding data.fromJson(net.sf.json.JSONObject)| Method Detail |
|---|
public void fromJson(net.sf.json.JSONObject json)
GerritJsonDTO
fromJson in interface GerritJsonDTOjson - the JSON Object.public String getBranch()
public void setBranch(String branch)
branch - the branch.public String getId()
public void setId(String id)
id - the identifier.public String getNumber()
public void setNumber(String number)
number - the change number.public Account getOwner()
public void setOwner(Account owner)
owner - the owner.public String getProject()
public void setProject(String project)
project - the project.public String getSubject()
public void setSubject(String subject)
subject - the description.public String getUrl()
public void setUrl(String url)
url - the URL.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||