public abstract class AbstractRecord extends Object implements Serializable
Constructor and Description |
---|
AbstractRecord() |
Modifier and Type | Method and Description |
---|---|
void |
addAllDatasets(Collection<Dataset> datasets)
Adds all the Datasets to the Dataset list of this Record/Result object.
|
void |
addAllParams(Collection<Param> params)
Adds all the Params to the Param list of this Record/Result object.
|
void |
addAllRecords(Collection<Record> records)
Adds all the Records to the Record list of this Record/Result object.
|
void |
addDataset(Dataset dataset)
Adds a Dataset to the Dataset list of this Record/Result object.
|
void |
addIntParam(String paramName,
int paramValue)
Adds a Param with given name and value as "int" data type to the Param list
of this Record/Result object.
|
void |
addIntParam(String paramName,
String paramValue)
Adds a Param with given name and value as "int" data type to the Param list
of this Record/Result object.
|
void |
addParam(Param param)
Adds a Param to the Param list of this Record/Result object.
|
void |
addParam(String paramName,
String paramValue)
Adds a Param with given name and value to the Param list of this
Record/Result object.
|
void |
addParam(String paramName,
String paramValue,
String paramType)
Adds a Param with given name, value and data type to the Param list of this
Record/Result object.
|
void |
addRecord(Record record)
Adds a Record to the Record list of this Record/Result object.
|
void |
addStringParam(String paramName,
String paramValue)
Adds a Param with given name and value as "string" data type to the Param
list of this Record/Result object.
|
void |
clearDatasets()
Clears all the Datasets in the Dataset list of this Record/Result object.
|
void |
clearParams()
Clears all the Params in the Param list of this Record/Result object.
|
void |
clearRecords()
Clears all the Records in the Record list of this Record/Result object.
|
List<Dataset> |
getAllDatasets()
Gets the read-only list of all Datasets of this Record/Result
object.
|
List<Param> |
getAllParams()
Gets the read-only list of all Params of this Record/Result object.
|
List<Record> |
getAllRecords()
Gets the read-only list of all inner Records of this Record/Result
object.
|
Dataset |
getDatasetById(String id)
Gets the Dataset with given id from this Record/Result object.
|
Set<String> |
getIdOfAllDatasets()
Gets the id of all Datasets in this Record/Result object.
|
Set<String> |
getIdOfAllRecords()
Gets the id of all inner Records in this Record/Result object.
|
Set<String> |
getNameOfAllParams()
Gets the name of all Params in this Record/Result object.
|
Param |
getParamByName(String name)
Gets the Param with given param name from this Record/Result object.
|
String |
getParamValueByName(String name)
Gets the value of the Param with given param name from this Record/Result
object.
|
Record |
getRecordById(String id)
Gets the inner Record with given id from this Record/Result object.
|
boolean |
hasParamByName(String name)
Checks whether the Param with given param name exists in this Record/Result object.
|
boolean |
removeDatasetById(String id)
Removes the given Dataset from the Dataset list of this Record/Result
object.
|
boolean |
removeParamByName(String name)
Removes the given Param from the Param list of this Record/Result object.
|
boolean |
removeRecordById(String id)
Removes the given Record from the Record list of this Record/Result object.
|
public List<Param> getAllParams()
Param
public List<Dataset> getAllDatasets()
Dataset
public List<Record> getAllRecords()
Record
public boolean hasParamByName(String name)
name
- The name of the Param to checkgetParamByName(String)
,
Param
public Param getParamByName(String name)
name
- The name of the Param to getgetParamValueByName(String)
,
Param
public String getParamValueByName(String name)
name
- The name of the Param whose value to getgetParamByName(String)
,
Param
public Dataset getDatasetById(String id)
id
- The id of the Dataset to getDataset
public Record getRecordById(String id)
id
- The id of the inner Record to getpublic Set<String> getNameOfAllParams()
Param
public Set<String> getIdOfAllRecords()
public Set<String> getIdOfAllDatasets()
Dataset
public void addParam(Param param)
param
- The Param to addgetAllParams()
,
Param
public void addParam(String paramName, String paramValue)
paramName
- The name of the paramparamValue
- The value of the paramgetAllParams()
,
Param
public void addParam(String paramName, String paramValue, String paramType)
paramName
- The name of the paramparamValue
- The value of the paramparamType
- The type of the ParamgetAllParams()
,
Param
public void addIntParam(String paramName, int paramValue)
paramName
- The name of the paramparamValue
- The value of the paramgetAllParams()
,
addIntParam(String, String)
,
Param
public void addIntParam(String paramName, String paramValue)
paramName
- The name of the paramparamValue
- The value of the paramgetAllParams()
,
addIntParam(String, int)
,
Param
public void addStringParam(String paramName, String paramValue)
paramName
- The name of the paramparamValue
- The value of the paramgetAllParams()
,
Param
public void addDataset(Dataset dataset)
dataset
- The Dataset to addParam
public void addRecord(Record record)
record
- The Record to addRecord
public void addAllParams(Collection<Param> params)
params
- The Params to addParam
public void addAllDatasets(Collection<Dataset> datasets)
datasets
- The Datasets to addDataset
public void addAllRecords(Collection<Record> records)
records
- The Records to addRecord
public void clearParams()
Param
public void clearDatasets()
Dataset
public void clearRecords()
Record
public boolean removeParamByName(String name)
name
- The name of the Param to removeParam
public boolean removeDatasetById(String id)
id
- The id of the Dataset to removeDataset
Copyright © 2019. All rights reserved.