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

io.qameta.allure.tree.TreeData Maven / Gradle / Ivy

There is a newer version: 2.30.0
Show newest version

package io.qameta.allure.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 io.qameta.allure.entity.GroupTime;
import io.qameta.allure.entity.Statistic;
import io.qameta.allure.entity.WithGroupTime;
import io.qameta.allure.entity.WithStatistic;


/**
 * 

Java class for TreeData complex type. * *

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

 * <complexType name="TreeData">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="statistic" type="{urn:entity.allure.qameta.io}Statistic"/>
 *         <element name="time" type="{urn:entity.allure.qameta.io}GroupTime"/>
 *         <element name="children" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="child" type="{urn:tree.allure.qameta.io}TreeNode" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TreeData", propOrder = { "statistic", "time", "children" }) public class TreeData implements Serializable, WithGroupTime, WithStatistic, WithChildren { private final static long serialVersionUID = 1L; @XmlElement(required = true) protected Statistic statistic; @XmlElement(required = true) protected GroupTime time; @XmlElementWrapper @XmlElement(name = "child") protected List children; /** * 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; } /** * 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; } public List getChildren() { if (children == null) { children = new ArrayList(); } return children; } public void setChildren(List children) { this.children = children; } public TreeData withStatistic(Statistic value) { setStatistic(value); return this; } public TreeData withTime(GroupTime value) { setTime(value); return this; } public TreeData withChildren(TreeNode... values) { if (values!= null) { for (TreeNode value: values) { getChildren().add(value); } } return this; } public TreeData withChildren(Collection values) { if (values!= null) { getChildren().addAll(values); } return this; } public TreeData withChildren(List children) { setChildren(children); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy