io.qameta.allure.severity.SeverityLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-generator Show documentation
Show all versions of allure-generator Show documentation
Module allure-generator of Allure Framework.
package io.qameta.allure.severity;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for SeverityLevel.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="SeverityLevel">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="blocker"/>
* <enumeration value="critical"/>
* <enumeration value="normal"/>
* <enumeration value="minor"/>
* <enumeration value="trivial"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "SeverityLevel", namespace = "urn:severity.allure.qameta.io")
@XmlEnum
public enum SeverityLevel {
@XmlEnumValue("blocker")
BLOCKER("blocker"),
@XmlEnumValue("critical")
CRITICAL("critical"),
@XmlEnumValue("normal")
NORMAL("normal"),
@XmlEnumValue("minor")
MINOR("minor"),
@XmlEnumValue("trivial")
TRIVIAL("trivial");
private final String value;
SeverityLevel(String v) {
value = v;
}
public String value() {
return value;
}
public static SeverityLevel fromValue(String v) {
for (SeverityLevel c: SeverityLevel.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy