io.qameta.allure.history.HistoryData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-generator Show documentation
Show all versions of allure-generator Show documentation
Module allure-generator of Allure Framework.
package io.qameta.allure.history;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
import io.qameta.allure.entity.Statistic;
import io.qameta.allure.entity.WithStatistic;
/**
* Java class for HistoryData complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="HistoryData">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="statistic" type="{urn:allure.qameta.io}Statistic"/>
* <element name="items">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="item" type="{urn:history.allure.qameta.io}HistoryItem" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HistoryData", propOrder = {
"statistic",
"items"
})
public class HistoryData implements Serializable, WithStatistic
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected Statistic statistic;
@XmlElementWrapper(required = true)
@XmlElement(name = "item")
protected List items;
/**
* Gets the value of the statistic property.
*
* @return
* possible object is
* {@link Statistic }
*
*/
public Statistic getStatistic() {
return statistic;
}
/**
* Sets the value of the statistic property.
*
* @param value
* allowed object is
* {@link Statistic }
*
*/
public void setStatistic(Statistic value) {
this.statistic = value;
}
public List getItems() {
if (items == null) {
items = new ArrayList();
}
return items;
}
public void setItems(List items) {
this.items = items;
}
public HistoryData withStatistic(Statistic value) {
setStatistic(value);
return this;
}
public HistoryData withItems(HistoryItem... values) {
if (values!= null) {
for (HistoryItem value: values) {
getItems().add(value);
}
}
return this;
}
public HistoryData withItems(Collection values) {
if (values!= null) {
getItems().addAll(values);
}
return this;
}
public HistoryData withItems(List items) {
setItems(items);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy