public class PatchSet extends Object implements GerritJsonDTO
| Constructor and Description |
|---|
PatchSet()
Default constructor.
|
PatchSet(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 |
getNumber()
The patchset number.
|
String |
getRef()
Gets the refspec, if it exists.
|
String |
getRevision()
Git commit-ish for this patchset.
|
Account |
getUploader()
The one who uploaded the patch-set.
|
int |
hashCode() |
void |
setNumber(String number)
The patchset number.
|
void |
setRef(String ref)
Sets the refspec.
|
void |
setRevision(String revision)
Git commit-ish for this patchset.
|
void |
setUploader(Account uploader)
The one who uploaded the patch-set.
|
String |
toString() |
public PatchSet()
public PatchSet(net.sf.json.JSONObject json)
json - the JSON object with corresponding data.public void fromJson(net.sf.json.JSONObject json)
GerritJsonDTOfromJson in interface GerritJsonDTOjson - the JSON Object.public String getNumber()
public void setNumber(String number)
number - the number.public String getRevision()
public void setRevision(String revision)
revision - the revision commit-ish.public String getRef()
public void setRef(String ref)
ref - the refspec.public Account getUploader()
public void setUploader(Account uploader)
uploader - the account of the uploader.Copyright © 2004-2015 Hudson. All Rights Reserved.