public class BuildResultRecord extends Record
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_GROUP |
static java.lang.String |
PROP_LABEL |
static java.lang.String |
PROP_URL |
Constructor and Description |
---|
BuildResultRecord()
Construct a record with a default ID
|
BuildResultRecord(java.lang.String id)
Construct a record with the supplied ID.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroup()
Return the group containing the build result
|
java.lang.String |
getLabel()
Return the label of the build result
|
java.lang.String |
getUrl()
Return the URL to the build result
|
BuildResultRecord |
parse(com.ibm.json.java.JSONObject jsonObj)
Create the record from JSON.
|
void |
setGroup(java.lang.String group)
Set the group containing the build result
|
void |
setLabel(java.lang.String label)
Set the build result label
|
void |
setUrl(java.lang.String url)
Set the build result URL
|
com.ibm.json.java.JSONObject |
toJSON()
Returns the record in JSON format.
|
public static final java.lang.String PROP_GROUP
public static final java.lang.String PROP_LABEL
public static final java.lang.String PROP_URL
public BuildResultRecord()
public BuildResultRecord(java.lang.String id)
id
- the id of the record.public com.ibm.json.java.JSONObject toJSON()
public BuildResultRecord parse(com.ibm.json.java.JSONObject jsonObj) throws ParseException
parse
in class Record
jsonObj
- The object in JSON to be parsed.ParseException
public java.lang.String getGroup()
public java.lang.String getLabel()
public java.lang.String getUrl()
public void setGroup(java.lang.String group)
group
- the grouppublic void setLabel(java.lang.String label)
label
- the build result labelpublic void setUrl(java.lang.String url)
url
- the build result URL<IBM Copyright © 2018 IBM Corp. All Rights Reserved.