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