org.allurefw.report.entity.Step Maven / Gradle / Ivy
The newest version!
package org.allurefw.report.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.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for Step complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Step">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="time" type="{urn:entity.report.allurefw.org}Time"/>
* <element name="status" type="{urn:entity.report.allurefw.org}Status"/>
* <element name="failure" type="{urn:entity.report.allurefw.org}Failure" minOccurs="0"/>
* <element name="steps" type="{urn:entity.report.allurefw.org}Steps" minOccurs="0"/>
* <element name="attachments" type="{urn:entity.report.allurefw.org}Attachments" minOccurs="0"/>
* <element name="parameters" type="{urn:entity.report.allurefw.org}Parameters" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Step", propOrder = {
})
public class Step implements Serializable, WithAttachments, WithFailure, WithName, WithStatus, WithSteps, WithSummary, WithTime
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected Time time;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected Status status;
protected Failure failure;
@XmlElementWrapper
@XmlElement(name = "step")
protected List steps;
@XmlElementWrapper
@XmlElement(name = "attachment")
protected List attachments;
@XmlElementWrapper
@XmlElement(name = "parameter")
protected List parameters;
/**
* 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;
}
/**
* Gets the value of the time property.
*
* @return
* possible object is
* {@link Time }
*
*/
public Time getTime() {
return time;
}
/**
* Sets the value of the time property.
*
* @param value
* allowed object is
* {@link Time }
*
*/
public void setTime(Time value) {
this.time = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link Status }
*
*/
public Status getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link Status }
*
*/
public void setStatus(Status value) {
this.status = value;
}
/**
* Gets the value of the failure property.
*
* @return
* possible object is
* {@link Failure }
*
*/
public Failure getFailure() {
return failure;
}
/**
* Sets the value of the failure property.
*
* @param value
* allowed object is
* {@link Failure }
*
*/
public void setFailure(Failure value) {
this.failure = value;
}
public List getSteps() {
if (steps == null) {
steps = new ArrayList();
}
return steps;
}
public void setSteps(List steps) {
this.steps = steps;
}
public List getAttachments() {
if (attachments == null) {
attachments = new ArrayList();
}
return attachments;
}
public void setAttachments(List attachments) {
this.attachments = attachments;
}
public List getParameters() {
if (parameters == null) {
parameters = new ArrayList();
}
return parameters;
}
public void setParameters(List parameters) {
this.parameters = parameters;
}
public Step withName(String value) {
setName(value);
return this;
}
public Step withTime(Time value) {
setTime(value);
return this;
}
public Step withStatus(Status value) {
setStatus(value);
return this;
}
public Step withFailure(Failure value) {
setFailure(value);
return this;
}
public Step withSteps(Step... values) {
if (values!= null) {
for (Step value: values) {
getSteps().add(value);
}
}
return this;
}
public Step withSteps(Collection values) {
if (values!= null) {
getSteps().addAll(values);
}
return this;
}
public Step withSteps(List steps) {
setSteps(steps);
return this;
}
public Step withAttachments(Attachment... values) {
if (values!= null) {
for (Attachment value: values) {
getAttachments().add(value);
}
}
return this;
}
public Step withAttachments(Collection values) {
if (values!= null) {
getAttachments().addAll(values);
}
return this;
}
public Step withAttachments(List attachments) {
setAttachments(attachments);
return this;
}
public Step withParameters(Parameter... values) {
if (values!= null) {
for (Parameter value: values) {
getParameters().add(value);
}
}
return this;
}
public Step withParameters(Collection values) {
if (values!= null) {
getParameters().addAll(values);
}
return this;
}
public Step withParameters(List parameters) {
setParameters(parameters);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy