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

io.qameta.allure.entity.StageResult 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.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for StageResult complex type. * *

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

 * <complexType name="StageResult">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="time" type="{urn:entity.allure.qameta.io}Time"/>
 *         <element name="status" type="{urn:entity.allure.qameta.io}Status"/>
 *         <element name="statusDetails" type="{urn:entity.allure.qameta.io}StatusDetails" minOccurs="0"/>
 *         <element name="steps" type="{urn:entity.allure.qameta.io}Steps" minOccurs="0"/>
 *         <element name="attachments" type="{urn:entity.allure.qameta.io}Attachments" minOccurs="0"/>
 *         <element name="parameters" type="{urn:entity.allure.qameta.io}Parameters" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StageResult", propOrder = { "name", "time", "status", "statusDetails", "steps", "attachments", "parameters" }) public class StageResult implements Serializable, WithSummary { 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 StatusDetails statusDetails; @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 statusDetails property. * * @return * possible object is * {@link StatusDetails } * */ public StatusDetails getStatusDetails() { return statusDetails; } /** * Sets the value of the statusDetails property. * * @param value * allowed object is * {@link StatusDetails } * */ public void setStatusDetails(StatusDetails value) { this.statusDetails = 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 StageResult withName(String value) { setName(value); return this; } public StageResult withTime(Time value) { setTime(value); return this; } public StageResult withStatus(Status value) { setStatus(value); return this; } public StageResult withStatusDetails(StatusDetails value) { setStatusDetails(value); return this; } public StageResult withSteps(Step... values) { if (values!= null) { for (Step value: values) { getSteps().add(value); } } return this; } public StageResult withSteps(Collection values) { if (values!= null) { getSteps().addAll(values); } return this; } public StageResult withSteps(List steps) { setSteps(steps); return this; } public StageResult withAttachments(Attachment... values) { if (values!= null) { for (Attachment value: values) { getAttachments().add(value); } } return this; } public StageResult withAttachments(Collection values) { if (values!= null) { getAttachments().addAll(values); } return this; } public StageResult withAttachments(List attachments) { setAttachments(attachments); return this; } public StageResult withParameters(Parameter... values) { if (values!= null) { for (Parameter value: values) { getParameters().add(value); } } return this; } public StageResult withParameters(Collection values) { if (values!= null) { getParameters().addAll(values); } return this; } public StageResult withParameters(List parameters) { setParameters(parameters); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy