Package com.ibm.dbb.build.report.records
Class BuildResultRecord
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.BuildResultRecord
-
public class BuildResultRecord extends Record
Record to store information about a build result
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_GROUP
static java.lang.String
PROP_LABEL
static java.lang.String
PROP_LOCATION
static java.lang.String
PROP_STORE_TYPE
static java.lang.String
PROP_URL
-
Constructor Summary
Constructors Constructor Description BuildResultRecord()
Construct a record with a default IDBuildResultRecord(java.lang.String id)
Construct a record with the supplied ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGroup()
Return the group containing the build resultjava.lang.String
getLabel()
Return the label of the build resultjava.lang.String
getLocation()
Return the location of the file metadata store of the build resultjava.lang.String
getStoreType()
Return the metadata store type of the build resultjava.lang.String
getUrl()
Return the URL to the build resultBuildResultRecord
parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.void
setGroup(java.lang.String group)
Set the group containing the build resultvoid
setLabel(java.lang.String label)
Set the build result labelvoid
setLocation(java.lang.String location)
Set the build result file metadata store locationvoid
setStoreType(java.lang.String type)
Set the build result metadata store typevoid
setUrl(java.lang.String url)
Set the build result URLcom.google.gson.JsonObject
toJSON()
Returns the record in JSON format.
-
-
-
Field Detail
-
PROP_GROUP
public static final java.lang.String PROP_GROUP
- See Also:
- Constant Field Values
-
PROP_LABEL
public static final java.lang.String PROP_LABEL
- See Also:
- Constant Field Values
-
PROP_URL
public static final java.lang.String PROP_URL
- See Also:
- Constant Field Values
-
PROP_STORE_TYPE
public static final java.lang.String PROP_STORE_TYPE
- See Also:
- Constant Field Values
-
PROP_LOCATION
public static final java.lang.String PROP_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns the record in JSON format.
-
parse
public BuildResultRecord parse(com.google.gson.JsonObject jsonObj) throws ParseException
Create the record from JSON.- Overrides:
parse
in classRecord
- Parameters:
jsonObj
- The object in JSON to be parsed.- Returns:
- the record representing by the supplied JSON contents.
- Throws:
ParseException
-
getGroup
public java.lang.String getGroup()
Return the group containing the build result- Returns:
- the group
-
getLabel
public java.lang.String getLabel()
Return the label of the build result- Returns:
- the label of the build result
-
getUrl
public java.lang.String getUrl()
Return the URL to the build result- Returns:
- the URL to the build result
-
getStoreType
public java.lang.String getStoreType()
Return the metadata store type of the build result- Returns:
- the metadata store type of the build result
-
getLocation
public java.lang.String getLocation()
Return the location of the file metadata store of the build result- Returns:
- the location of the file metadata store of the build result
-
setGroup
public void setGroup(java.lang.String group)
Set the group containing the build result- Parameters:
group
- the group
-
setLabel
public void setLabel(java.lang.String label)
Set the build result label- Parameters:
label
- the build result label
-
setUrl
public void setUrl(java.lang.String url)
Set the build result URL- Parameters:
url
- the build result URL
-
setStoreType
public void setStoreType(java.lang.String type) throws ParseException
Set the build result metadata store type- Parameters:
type
- the build result metadata store type- Throws:
ParseException
-
setLocation
public void setLocation(java.lang.String location)
Set the build result file metadata store location- Parameters:
location
- the build results file metadata store location
-
-