Package com.ibm.dbb.build.report.records
Interface IRecordFactory
-
- All Known Implementing Classes:
AbstractRecordFactory
,DefaultRecordFactory
public interface IRecordFactory
The factory that can parse and create certain types of a record.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Record
createRecord(java.lang.String id, java.lang.String type)
Create a record from the supplied ID and type.java.lang.String[]
getAllSupportedTypes()
Returns all supported record types.Record
parseRecord(com.google.gson.JsonObject jsonObj)
Create the record from JSON.
-
-
-
Method Detail
-
createRecord
Record createRecord(java.lang.String id, java.lang.String type)
Create a record from the supplied ID and type.- Parameters:
id
- the ID.type
- the type.- Returns:
- a record of a specified type with the supplied ID.
-
parseRecord
Record parseRecord(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.
-
getAllSupportedTypes
java.lang.String[] getAllSupportedTypes()
Returns all supported record types.- Returns:
- all supported record types.
-
-