Package com.ibm.dbb.build.report.records
Class Record
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- Direct Known Subclasses:
AnyTypeRecord
,BuildResultRecord
,CopyToHFSRecord
,CopyToPDSRecord
,CopyToUnixRecord
,CreatePDSRecord
,DependencySetRecord
,ExecuteRecord
,ModeRecord
,PropertiesRecord
,Reference
,UnixRecord
,VersionRecord
public class Record extends java.lang.Object
The base class for all records being stored in the build report.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
Return the ID of the record.java.lang.String
getType()
Return the type of the record.Record
parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.void
setId(java.lang.String id)
Set the ID of the record.void
setType(java.lang.String type)
Set the type of the record.com.google.gson.JsonObject
toJSON()
Returns the record in JSON format.java.lang.String
toString()
-
-
-
Field Detail
-
PROP_ID
public static final java.lang.String PROP_ID
- See Also:
- Constant Field Values
-
PROP_TYPE
public static final java.lang.String PROP_TYPE
- See Also:
- Constant Field Values
-
id
public java.lang.String id
-
type
public java.lang.String type
-
-
Constructor Detail
-
Record
public Record(java.lang.String type)
Construct a record with a default ID- Parameters:
type
- the type of record to be created
-
Record
public Record(java.lang.String id, java.lang.String type)
Construct a record from an ID and type.- Parameters:
id
- the id.type
- the type.
-
-
Method Detail
-
getId
public java.lang.String getId()
Return the ID of the record.- Returns:
- the ID of the record.
-
setId
public void setId(java.lang.String id)
Set the ID of the record.- Parameters:
id
- the ID of the record.
-
getType
public java.lang.String getType()
Return the type of the record.- Returns:
- the type of the record.
-
setType
public void setType(java.lang.String type)
Set the type of the record.- Parameters:
type
- the type of the record.
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns the record in JSON format.- Returns:
- the JSON format of this record.
-
parse
public Record parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.- Parameters:
jsonObj
- The object in JSON to be parsed.- Returns:
- the record representing by the supplied JSON contents.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-