All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qameta.allure.summary.SummaryData Maven / Gradle / Ivy

There is a newer version: 2.32.0
Show newest version

package io.qameta.allure.summary;

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.GroupTime;
import io.qameta.allure.entity.Statistic;
import io.qameta.allure.entity.WithGroupTime;
import io.qameta.allure.entity.WithStatistic;


/**
 * 

Java class for SummaryData complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="SummaryData">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="reportName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="testRuns">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="testRun" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="statistic" type="{urn:allure.qameta.io}Statistic"/>
 *         <element name="time" type="{urn:allure.qameta.io}GroupTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SummaryData", propOrder = { "reportName", "testRuns", "statistic", "time" }) public class SummaryData implements Serializable, WithGroupTime, WithStatistic { private final static long serialVersionUID = 1L; @XmlElement(required = true) protected String reportName; @XmlElementWrapper(required = true) @XmlElement(name = "testRun") protected List testRuns; @XmlElement(required = true) protected Statistic statistic; @XmlElement(required = true) protected GroupTime time; /** * Gets the value of the reportName property. * * @return * possible object is * {@link String } * */ public String getReportName() { return reportName; } /** * Sets the value of the reportName property. * * @param value * allowed object is * {@link String } * */ public void setReportName(String value) { this.reportName = value; } /** * 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; } /** * Gets the value of the time property. * * @return * possible object is * {@link GroupTime } * */ public GroupTime getTime() { return time; } /** * Sets the value of the time property. * * @param value * allowed object is * {@link GroupTime } * */ public void setTime(GroupTime value) { this.time = value; } public List getTestRuns() { if (testRuns == null) { testRuns = new ArrayList(); } return testRuns; } public void setTestRuns(List testRuns) { this.testRuns = testRuns; } public SummaryData withReportName(String value) { setReportName(value); return this; } public SummaryData withStatistic(Statistic value) { setStatistic(value); return this; } public SummaryData withTime(GroupTime value) { setTime(value); return this; } public SummaryData withTestRuns(String... values) { if (values!= null) { for (String value: values) { getTestRuns().add(value); } } return this; } public SummaryData withTestRuns(Collection values) { if (values!= null) { getTestRuns().addAll(values); } return this; } public SummaryData withTestRuns(List testRuns) { setTestRuns(testRuns); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy