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

io.qameta.allure.model.ExecutableItem Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version

package io.qameta.allure.model;

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.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for ExecutableItem complex type. * *

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

 * <complexType name="ExecutableItem">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="status" type="{urn:model.allure.qameta.io}Status"/>
 *         <element name="statusDetails" type="{urn:model.allure.qameta.io}StatusDetails"/>
 *         <element name="stage" type="{urn:model.allure.qameta.io}Stage"/>
 *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="descriptionHtml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="steps" type="{urn:model.allure.qameta.io}Steps" minOccurs="0"/>
 *         <element name="attachments" type="{urn:model.allure.qameta.io}Attachments" minOccurs="0"/>
 *         <element name="parameters" type="{urn:model.allure.qameta.io}Parameters" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="start" type="{http://www.w3.org/2001/XMLSchema}long" />
 *       <attribute name="stop" type="{http://www.w3.org/2001/XMLSchema}long" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ExecutableItem", propOrder = { "name", "status", "statusDetails", "stage", "description", "descriptionHtml", "steps", "attachments", "parameters" }) @XmlSeeAlso({ TestResult.class, StepResult.class, FixtureResult.class }) public abstract class ExecutableItem implements Serializable, WithAttachments, WithParameters, WithSteps { private final static long serialVersionUID = 1L; @XmlElement(required = true) protected String name; @XmlElement(required = true) @XmlSchemaType(name = "string") protected Status status; @XmlElement(required = true) protected StatusDetails statusDetails; @XmlElement(required = true) @XmlSchemaType(name = "string") protected Stage stage; protected String description; protected String descriptionHtml; @XmlElementWrapper @XmlElement(name = "step") protected List steps; @XmlElementWrapper @XmlElement(name = "attachment") protected List attachments; @XmlElementWrapper @XmlElement(name = "parameter") protected List parameters; @XmlAttribute(name = "start") protected Long start; @XmlAttribute(name = "stop") protected Long stop; /** * 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 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; } /** * Gets the value of the stage property. * * @return * possible object is * {@link Stage } * */ public Stage getStage() { return stage; } /** * Sets the value of the stage property. * * @param value * allowed object is * {@link Stage } * */ public void setStage(Stage value) { this.stage = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the descriptionHtml property. * * @return * possible object is * {@link String } * */ public String getDescriptionHtml() { return descriptionHtml; } /** * Sets the value of the descriptionHtml property. * * @param value * allowed object is * {@link String } * */ public void setDescriptionHtml(String value) { this.descriptionHtml = value; } /** * Gets the value of the start property. * * @return * possible object is * {@link Long } * */ public Long getStart() { return start; } /** * Sets the value of the start property. * * @param value * allowed object is * {@link Long } * */ public void setStart(Long value) { this.start = value; } /** * Gets the value of the stop property. * * @return * possible object is * {@link Long } * */ public Long getStop() { return stop; } /** * Sets the value of the stop property. * * @param value * allowed object is * {@link Long } * */ public void setStop(Long value) { this.stop = 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 ExecutableItem withName(String value) { setName(value); return this; } public ExecutableItem withStatus(Status value) { setStatus(value); return this; } public ExecutableItem withStatusDetails(StatusDetails value) { setStatusDetails(value); return this; } public ExecutableItem withStage(Stage value) { setStage(value); return this; } public ExecutableItem withDescription(String value) { setDescription(value); return this; } public ExecutableItem withDescriptionHtml(String value) { setDescriptionHtml(value); return this; } public ExecutableItem withStart(Long value) { setStart(value); return this; } public ExecutableItem withStop(Long value) { setStop(value); return this; } public ExecutableItem withSteps(StepResult... values) { if (values!= null) { for (StepResult value: values) { getSteps().add(value); } } return this; } public ExecutableItem withSteps(Collection values) { if (values!= null) { getSteps().addAll(values); } return this; } public ExecutableItem withSteps(List steps) { setSteps(steps); return this; } public ExecutableItem withAttachments(Attachment... values) { if (values!= null) { for (Attachment value: values) { getAttachments().add(value); } } return this; } public ExecutableItem withAttachments(Collection values) { if (values!= null) { getAttachments().addAll(values); } return this; } public ExecutableItem withAttachments(List attachments) { setAttachments(attachments); return this; } public ExecutableItem withParameters(Parameter... values) { if (values!= null) { for (Parameter value: values) { getParameters().add(value); } } return this; } public ExecutableItem withParameters(Collection values) { if (values!= null) { getParameters().addAll(values); } return this; } public ExecutableItem withParameters(List parameters) { setParameters(parameters); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy