org.allurefw.report.tree.TestGroupNode Maven / Gradle / Ivy
The newest version!
package org.allurefw.report.tree;
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.GroupTime;
import org.allurefw.report.entity.Statistic;
import org.allurefw.report.entity.WithGroupTime;
import org.allurefw.report.entity.WithStatistic;
/**
* Java class for TestGroupNode complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TestGroupNode">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="uid" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="time" type="{urn:entity.report.allurefw.org}GroupTime"/>
* <element name="statistic" type="{urn:entity.report.allurefw.org}Statistic"/>
* <element name="children" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="child" type="{urn:tree.report.allurefw.org}TreeNode" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TestGroupNode", propOrder = {
})
public class TestGroupNode implements Serializable, WithGroupTime, WithStatistic, org.allurefw.report.tree.TreeNode, WithChildren
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected String uid;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected GroupTime time;
@XmlElement(required = true)
protected Statistic statistic;
@XmlElementWrapper
@XmlElement(name = "child")
protected List children;
/**
* Gets the value of the uid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUid() {
return uid;
}
/**
* Sets the value of the uid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUid(String value) {
this.uid = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = 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;
}
/**
* 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;
}
public List getChildren() {
if (children == null) {
children = new ArrayList();
}
return children;
}
public void setChildren(List children) {
this.children = children;
}
public TestGroupNode withUid(String value) {
setUid(value);
return this;
}
public TestGroupNode withName(String value) {
setName(value);
return this;
}
public TestGroupNode withTime(GroupTime value) {
setTime(value);
return this;
}
public TestGroupNode withStatistic(Statistic value) {
setStatistic(value);
return this;
}
public TestGroupNode withChildren(org.allurefw.report.tree.TreeNode... values) {
if (values!= null) {
for (org.allurefw.report.tree.TreeNode value: values) {
getChildren().add(value);
}
}
return this;
}
public TestGroupNode withChildren(Collection values) {
if (values!= null) {
getChildren().addAll(values);
}
return this;
}
public TestGroupNode withChildren(List children) {
setChildren(children);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy