public class Change extends Object implements GerritJsonDTO
| Constructor and Description |
|---|
Change()
Default constructor.
|
Change(net.sf.json.JSONObject json)
Constructor that fills with data directly.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public Change()
public Change(net.sf.json.JSONObject json)
json - the JSON Object with corresponding data.fromJson(net.sf.json.JSONObject)public void fromJson(net.sf.json.JSONObject json)
GerritJsonDTOfromJson 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.Copyright © 2004-2015 Hudson. All Rights Reserved.