Class Item

java.lang.Object
io.jenkins.plugins.reporter.model.Item
All Implemented Interfaces:
Serializable

public class Item extends Object implements Serializable
Json Model class, which represents an Item. An item always has an id and a map of result. In addition, an Item can in turn contain a list of items.
Author:
Simon Symhoven
See Also:
  • Constructor Details

    • Item

      public Item()
  • Method Details

    • getId

      public String getId()
    • getEncodedId

      public String getEncodedId()
    • setId

      public void setId(String id)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getResult

      public LinkedHashMap<String,Integer> getResult()
    • getTotal

      public int getTotal()
    • getLabel

      public String getLabel(Report report, Integer value, double percentage)
    • setResult

      public void setResult(LinkedHashMap<String,Integer> result)
    • getItems

      public List<Item> getItems()
    • hasItems

      public boolean hasItems()
    • setItems

      public void setItems(List<Item> items)
    • addItem

      public void addItem(Item item)