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

io.qameta.allure.tree.TreeWidgetData 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;


/**
 * 

Java class for TreeWidgetData complex type. * *

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

 * <complexType name="TreeWidgetData">
 *   <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:tree.allure.qameta.io}TreeWidgetItem" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TreeWidgetData", propOrder = { "total", "items" }) public class TreeWidgetData 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 TreeWidgetData withTotal(long value) { setTotal(value); return this; } public TreeWidgetData withItems(TreeWidgetItem... values) { if (values!= null) { for (TreeWidgetItem value: values) { getItems().add(value); } } return this; } public TreeWidgetData withItems(Collection values) { if (values!= null) { getItems().addAll(values); } return this; } public TreeWidgetData withItems(List items) { setItems(items); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy