io.qameta.allure.entity.LabelName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-plugin-api Show documentation
Show all versions of allure-plugin-api Show documentation
Module allure-plugin-api of Allure Framework.
package io.qameta.allure.entity;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for LabelName.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="LabelName">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="owner"/>
* <enumeration value="severity"/>
* <enumeration value="issue"/>
* <enumeration value="testType"/>
* <enumeration value="parentSuite"/>
* <enumeration value="suite"/>
* <enumeration value="subSuite"/>
* <enumeration value="package"/>
* <enumeration value="epic"/>
* <enumeration value="feature"/>
* <enumeration value="story"/>
* <enumeration value="testClass"/>
* <enumeration value="testMethod"/>
* <enumeration value="host"/>
* <enumeration value="thread"/>
* <enumeration value="language"/>
* <enumeration value="framework"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "LabelName")
@XmlEnum
public enum LabelName {
@XmlEnumValue("owner")
OWNER("owner"),
@XmlEnumValue("severity")
SEVERITY("severity"),
@XmlEnumValue("issue")
ISSUE("issue"),
@XmlEnumValue("testType")
TEST_TYPE("testType"),
@XmlEnumValue("parentSuite")
PARENT_SUITE("parentSuite"),
@XmlEnumValue("suite")
SUITE("suite"),
@XmlEnumValue("subSuite")
SUB_SUITE("subSuite"),
@XmlEnumValue("package")
PACKAGE("package"),
@XmlEnumValue("epic")
EPIC("epic"),
@XmlEnumValue("feature")
FEATURE("feature"),
@XmlEnumValue("story")
STORY("story"),
@XmlEnumValue("testClass")
TEST_CLASS("testClass"),
@XmlEnumValue("testMethod")
TEST_METHOD("testMethod"),
@XmlEnumValue("host")
HOST("host"),
@XmlEnumValue("thread")
THREAD("thread"),
@XmlEnumValue("language")
LANGUAGE("language"),
@XmlEnumValue("framework")
FRAMEWORK("framework");
private final String value;
LabelName(String v) {
value = v;
}
public String value() {
return value;
}
public static LabelName fromValue(String v) {
for (LabelName c: LabelName.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy