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

io.qameta.allure.entity.EnvironmentItem Maven / Gradle / Ivy

There is a newer version: 2.30.0
Show newest version

package io.qameta.allure.entity;

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.XmlAttribute;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for EnvironmentItem complex type. * *

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

 * <complexType name="EnvironmentItem">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="values" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EnvironmentItem", propOrder = { "values" }) public class EnvironmentItem implements Serializable { private final static long serialVersionUID = 1L; protected List values; @XmlAttribute(name = "name", required = true) protected String name; /** * Gets the value of the values property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the values property. * *

* For example, to add a new item, do as follows: *

     *    getValues().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getValues() { if (values == null) { values = new ArrayList(); } return this.values; } /** * 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; } public EnvironmentItem withValues(String... values) { if (values!= null) { for (String value: values) { getValues().add(value); } } return this; } public EnvironmentItem withValues(Collection values) { if (values!= null) { getValues().addAll(values); } return this; } public EnvironmentItem withName(String value) { setName(value); return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy