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 anItem
. An item always has anid
and a map ofresult
. In addition, anItem
can in turn contain a list of items.- Author:
- Simon Symhoven
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Item()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(Item item)
String
getEncodedId()
String
getId()
List<Item>
getItems()
String
getLabel(Report report, Integer value, double percentage)
String
getName()
LinkedHashMap<String,Integer>
getResult()
int
getTotal()
boolean
hasItems()
void
setId(String id)
void
setItems(List<Item> items)
void
setName(String name)
void
setResult(LinkedHashMap<String,Integer> result)
-
-
-
Method Detail
-
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()
-
setResult
public void setResult(LinkedHashMap<String,Integer> result)
-
hasItems
public boolean hasItems()
-
addItem
public void addItem(Item item)
-
-