public class RefUpdate extends Object implements GerritJsonDTO
| Constructor and Description |
|---|
RefUpdate()
Default constructor.
|
RefUpdate(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 |
getNewRev()
New revision.
|
String |
getOldRev()
Old revision.
|
String |
getProject()
Name of project.
|
String |
getRefName()
Ref name within project.
|
int |
hashCode() |
void |
setNewRev(String newRev)
Change new Revision.
|
void |
setOldRev(String oldRev)
Change old revision.
|
void |
setProject(String project)
Change name of project.
|
void |
setRefName(String refName)
Ref name within project.
|
String |
toString() |
public RefUpdate()
public RefUpdate(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 getProject()
public void setProject(String project)
project - the project.public String getRefName()
public void setRefName(String refName)
refName - the ref.public String getOldRev()
public void setOldRev(String oldRev)
oldRev - the rev.public String getNewRev()
public void setNewRev(String newRev)
newRev - the rev.Copyright © 2004-2015 Hudson. All Rights Reserved.