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

org.allurefw.report.GraphData Maven / Gradle / Ivy

The newest version!

package org.allurefw.report;

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 org.allurefw.report.entity.TestCaseInfo;


/**
 * 

Java class for GraphData complex type. * *

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

 * <complexType name="GraphData">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="testCases" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="testCase" type="{urn:report.allurefw.org}TestCaseInfo" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "GraphData", propOrder = { "testCases" }) public class GraphData implements Serializable { private final static long serialVersionUID = 1L; @XmlElementWrapper @XmlElement(name = "testCase") protected List testCases; public List getTestCases() { if (testCases == null) { testCases = new ArrayList(); } return testCases; } public void setTestCases(List testCases) { this.testCases = testCases; } public GraphData withTestCases(TestCaseInfo... values) { if (values!= null) { for (TestCaseInfo value: values) { getTestCases().add(value); } } return this; } public GraphData withTestCases(Collection values) { if (values!= null) { getTestCases().addAll(values); } return this; } public GraphData withTestCases(List testCases) { setTestCases(testCases); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy