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

org.allurefw.report.EnvironmentData 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 EnvironmentData complex type. * *

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

 * <complexType name="EnvironmentData">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="parameters" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="parameter" type="{urn:report.allurefw.org}EnvironmentParameter" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EnvironmentData", propOrder = { }) public class EnvironmentData implements Serializable { private final static long serialVersionUID = 1L; @XmlElementWrapper @XmlElement(name = "parameter") protected List parameters; public List getParameters() { if (parameters == null) { parameters = new ArrayList(); } return parameters; } public void setParameters(List parameters) { this.parameters = parameters; } public EnvironmentData withParameters(EnvironmentParameter... values) { if (values!= null) { for (EnvironmentParameter value: values) { getParameters().add(value); } } return this; } public EnvironmentData withParameters(Collection values) { if (values!= null) { getParameters().addAll(values); } return this; } public EnvironmentData withParameters(List parameters) { setParameters(parameters); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy