org.allurefw.report.XunitWidgetData 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 XunitWidgetData complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="XunitWidgetData">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="total" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="items" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="item" type="{urn:report.allurefw.org}XunitWidgetItem" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "XunitWidgetData", propOrder = {
"total",
"items"
})
public class XunitWidgetData implements Serializable
{
private final static long serialVersionUID = 1L;
protected long total;
@XmlElementWrapper
@XmlElement(name = "item")
protected List items;
/**
* Gets the value of the total property.
*
*/
public long getTotal() {
return total;
}
/**
* Sets the value of the total property.
*
*/
public void setTotal(long value) {
this.total = value;
}
public List getItems() {
if (items == null) {
items = new ArrayList();
}
return items;
}
public void setItems(List items) {
this.items = items;
}
public XunitWidgetData withTotal(long value) {
setTotal(value);
return this;
}
public XunitWidgetData withItems(XunitWidgetItem... values) {
if (values!= null) {
for (XunitWidgetItem value: values) {
getItems().add(value);
}
}
return this;
}
public XunitWidgetData withItems(Collection values) {
if (values!= null) {
getItems().addAll(values);
}
return this;
}
public XunitWidgetData withItems(List items) {
setItems(items);
return this;
}
}