io.qameta.allure.entity.Statistic Maven / Gradle / Ivy
package io.qameta.allure.entity;
import java.io.Serializable;
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 Statistic complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Statistic">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="failed" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
* <attribute name="broken" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
* <attribute name="skipped" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
* <attribute name="passed" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
* <attribute name="unknown" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Statistic")
public class Statistic implements Serializable, ExtraStatisticMethods
{
private final static long serialVersionUID = 1L;
@XmlAttribute(name = "failed", required = true)
protected long failed;
@XmlAttribute(name = "broken", required = true)
protected long broken;
@XmlAttribute(name = "skipped", required = true)
protected long skipped;
@XmlAttribute(name = "passed", required = true)
protected long passed;
@XmlAttribute(name = "unknown", required = true)
protected long unknown;
/**
* Gets the value of the failed property.
*
*/
public long getFailed() {
return failed;
}
/**
* Sets the value of the failed property.
*
*/
public void setFailed(long value) {
this.failed = value;
}
/**
* Gets the value of the broken property.
*
*/
public long getBroken() {
return broken;
}
/**
* Sets the value of the broken property.
*
*/
public void setBroken(long value) {
this.broken = value;
}
/**
* Gets the value of the skipped property.
*
*/
public long getSkipped() {
return skipped;
}
/**
* Sets the value of the skipped property.
*
*/
public void setSkipped(long value) {
this.skipped = value;
}
/**
* Gets the value of the passed property.
*
*/
public long getPassed() {
return passed;
}
/**
* Sets the value of the passed property.
*
*/
public void setPassed(long value) {
this.passed = value;
}
/**
* Gets the value of the unknown property.
*
*/
public long getUnknown() {
return unknown;
}
/**
* Sets the value of the unknown property.
*
*/
public void setUnknown(long value) {
this.unknown = value;
}
public Statistic withFailed(long value) {
setFailed(value);
return this;
}
public Statistic withBroken(long value) {
setBroken(value);
return this;
}
public Statistic withSkipped(long value) {
setSkipped(value);
return this;
}
public Statistic withPassed(long value) {
setPassed(value);
return this;
}
public Statistic withUnknown(long value) {
setUnknown(value);
return this;
}
}