Class Report
- java.lang.Object
-
- io.jenkins.plugins.reporter.model.ReportBase
-
- io.jenkins.plugins.reporter.model.Report
-
- All Implemented Interfaces:
Serializable
public class Report extends ReportBase implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Report report)
LinkedHashMap<String,Integer>
aggregate()
LinkedHashMap<String,Integer>
aggregate(List<Item> items)
Aggregates the results of all items.Optional<Item>
findItem(String id)
String
getColor(String id)
List<String>
getColorIds()
Map<String,String>
getColors()
DisplayType
getDisplayType()
List<String>
getErrorMessages()
String
getId()
List<String>
getInfoMessages()
List<Item>
getItems()
String
getName()
List<Report>
getSubReports()
boolean
hasColors()
boolean
hasItems()
void
logError(String format, Object... args)
void
logException(Exception exception, String format, Object... args)
void
logInfo(String format, Object... args)
void
setColors(Map<String,String> colors)
void
setDisplayType(DisplayType displayType)
void
setId(String id)
void
setItems(List<Item> items)
void
setName(String name)
void
setSubReports(List<Report> subReports)
-
Methods inherited from class io.jenkins.plugins.reporter.model.ReportBase
findItem
-
-
-
-
Constructor Detail
-
Report
public Report()
-
Report
public Report(String name)
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDisplayType
public DisplayType getDisplayType()
-
setDisplayType
public void setDisplayType(DisplayType displayType)
-
add
public void add(Report report)
-
hasColors
public boolean hasColors()
-
hasItems
public boolean hasItems()
-
aggregate
public LinkedHashMap<String,Integer> aggregate(List<Item> items)
Aggregates the results of all items. The values are added together, grouped by key.- Parameters:
items
- the items to aggregate the childs for.- Returns:
- the aggregated result.
-
aggregate
public LinkedHashMap<String,Integer> aggregate()
-
-