Package com.ibm.dbb.build.report.records
Class VersionRecord
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.VersionRecord
-
public class VersionRecord extends Record
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_BUILDstatic java.lang.StringPROP_DATEstatic java.lang.StringPROP_VERSION
-
Constructor Summary
Constructors Constructor Description VersionRecord()Construct a record with a default IDVersionRecord(java.lang.String id)Construct a default record with the specific ID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBuild()Return the build version number of DBBjava.lang.StringgetDate()Return the date of the DBB buildjava.lang.StringgetVersion()Return the version of DBBVersionRecordparse(com.google.gson.JsonObject jsonObj)Create the record from JSON.voidsetBuild(java.lang.String build)Set the build version number of DBBvoidsetDate(java.lang.String date)Set the date of DBB buildvoidsetVersion(java.lang.String version)Set the version of DBBcom.google.gson.JsonObjecttoJSON()Returns the record in JSON format.
-
-
-
Field Detail
-
PROP_VERSION
public static final java.lang.String PROP_VERSION
- See Also:
- Constant Field Values
-
PROP_BUILD
public static final java.lang.String PROP_BUILD
- See Also:
- Constant Field Values
-
PROP_DATE
public static final java.lang.String PROP_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
Return the version of DBB- Returns:
- the version of DBB
-
setVersion
public void setVersion(java.lang.String version)
Set the version of DBB- Parameters:
version- the version of DBB
-
getBuild
public java.lang.String getBuild()
Return the build version number of DBB- Returns:
- the build version number of DBB
-
setBuild
public void setBuild(java.lang.String build)
Set the build version number of DBB- Parameters:
build- the build version number
-
getDate
public java.lang.String getDate()
Return the date of the DBB build- Returns:
- the date of the DBB build
-
setDate
public void setDate(java.lang.String date)
Set the date of DBB build- Parameters:
date- the date of DBB build
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns the record in JSON format.
-
parse
public VersionRecord parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.
-
-