|
||||||||||
| 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.PatchSet
public class PatchSet
Represents a Gerrit JSON Patchset DTO. Refers to a specific patchset within a change.
| Constructor Summary | |
|---|---|
PatchSet()
Default constructor. |
|
PatchSet(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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PatchSet()
public PatchSet(net.sf.json.JSONObject json)
json - the JSON object with corresponding data.| Method Detail |
|---|
public void fromJson(net.sf.json.JSONObject json)
GerritJsonDTO
fromJson 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.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 | |||||||||