org.plasma.runtime.EnumSource Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.02.10 at 02:01:29 PM MST
//
package org.plasma.runtime;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for EnumSource.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="EnumSource">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="external"/>
* <enumeration value="derived"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "EnumSource")
@XmlEnum
public enum EnumSource {
/**
* Reference enums from some external source
*
*/
@XmlEnumValue("external")
EXTERNAL("external"),
/**
* Derive enums from metadata
*
*/
@XmlEnumValue("derived")
DERIVED("derived");
private final String value;
EnumSource(String v) {
value = v;
}
public String value() {
return value;
}
public static EnumSource fromValue(String v) {
for (EnumSource c: EnumSource.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}