energyml.relationships.TargetMode Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.10.13 at 07:41:24 PM UTC
//
package energyml.relationships;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for TargetMode.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="TargetMode">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="External"/>
* <enumeration value="Internal"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "TargetMode")
@XmlEnum
public enum TargetMode {
@XmlEnumValue("External")
EXTERNAL("External"),
@XmlEnumValue("Internal")
INTERNAL("Internal");
private final String value;
TargetMode(String v) {
value = v;
}
public String value() {
return value;
}
public static TargetMode fromValue(String v) {
for (TargetMode c: TargetMode.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}