org.allurefw.report.DefectsData 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;
/**
* Java class for DefectsData complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DefectsData">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="productDefects" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="productDefect" type="{urn:report.allurefw.org}Defect" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="testDefects" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="testDefect" type="{urn:report.allurefw.org}Defect" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DefectsData", propOrder = {
"productDefects",
"testDefects"
})
public class DefectsData implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElementWrapper
@XmlElement(name = "productDefect")
protected List productDefects;
@XmlElementWrapper
@XmlElement(name = "testDefect")
protected List testDefects;
public List getProductDefects() {
if (productDefects == null) {
productDefects = new ArrayList();
}
return productDefects;
}
public void setProductDefects(List productDefects) {
this.productDefects = productDefects;
}
public List getTestDefects() {
if (testDefects == null) {
testDefects = new ArrayList();
}
return testDefects;
}
public void setTestDefects(List testDefects) {
this.testDefects = testDefects;
}
public DefectsData withProductDefects(Defect... values) {
if (values!= null) {
for (Defect value: values) {
getProductDefects().add(value);
}
}
return this;
}
public DefectsData withProductDefects(Collection values) {
if (values!= null) {
getProductDefects().addAll(values);
}
return this;
}
public DefectsData withProductDefects(List productDefects) {
setProductDefects(productDefects);
return this;
}
public DefectsData withTestDefects(Defect... values) {
if (values!= null) {
for (Defect value: values) {
getTestDefects().add(value);
}
}
return this;
}
public DefectsData withTestDefects(Collection values) {
if (values!= null) {
getTestDefects().addAll(values);
}
return this;
}
public DefectsData withTestDefects(List testDefects) {
setTestDefects(testDefects);
return this;
}
}