Represents a reporting system data that can be converted to a payload. Transformation can be applied before the converting.
Data myData = new Data([ uniqueKeyName : 'buildNumber', reportObjectType : 'build' values : [ buildNumber : 1, buildState : 'SUCCESS' ] ])
Type | Name and description |
---|---|
java.util.ArrayList<Data> |
dependentData Data can contain dependent data, e.g. |
java.lang.String |
reportObjectType Name of the report object type the values are related to |
java.util.Map |
values Data of this report object |
Constructor and description |
---|
Data
(java.util.Map<java.lang.String, java.lang.Object> initArgs) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addDependentData(Data dependentData) Pushes new Data to the dependent data of this instance |
|
void |
addOrUpdateValue(java.lang.String key, java.lang.String value) Adds a value into current report values. |
|
void |
addValue(java.lang.String key, java.lang.String value) Adds a value into current report values. |
|
java.lang.Object |
createNewDependentData(java.util.Map dataArgs) Creates new Data that will be included as a dependent Data for this instance |
|
java.lang.String |
toString() toString override was made for the debugging purposes |
|
java.lang.Object |
updateValue(java.lang.String key, java.lang.String value) Updates a value in current report values. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Data can contain dependent data, e.g. 'build' can contain 'quality' (test results)
Name of the report object type the values are related to
Data of this report object
Pushes new Data to the dependent data of this instance
dependentData
- Data that will be saved to this instance.Adds a value into current report values. Will NOT fail if value exists or is not null
key
- key to add value tovalue
- new valueAdds a value into current report values. Will fail if value exists or is not null
key
- key to add value tovalue
- new valueCreates new Data that will be included as a dependent Data for this instance
toString override was made for the debugging purposes
Updates a value in current report values. Will fail if value DOES NOT exists or is null
key
- key to add value tovalue
- new valueGroovy Documentation