org.allurefw.report.EnvironmentParameter 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 EnvironmentParameter complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="EnvironmentParameter">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="values">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EnvironmentParameter", propOrder = {
})
public class EnvironmentParameter implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected String name;
@XmlElementWrapper(required = true)
@XmlElement(name = "value")
protected List 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 List getValues() {
if (values == null) {
values = new ArrayList();
}
return values;
}
public void setValues(List values) {
this.values = values;
}
public EnvironmentParameter withName(String value) {
setName(value);
return this;
}
public EnvironmentParameter withValues(String... values) {
if (values!= null) {
for (String value: values) {
getValues().add(value);
}
}
return this;
}
public EnvironmentParameter withValues(Collection values) {
if (values!= null) {
getValues().addAll(values);
}
return this;
}
public EnvironmentParameter withValues(List values) {
setValues(values);
return this;
}
}