org.hl7.elm_modelinfo.r1.BindingStrength Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.11.06 at 08:02:20 AM MST
//
package org.hl7.elm_modelinfo.r1;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for BindingStrength.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="BindingStrength">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Required"/>
* <enumeration value="Extensible"/>
* <enumeration value="Preferred"/>
* <enumeration value="Example"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "BindingStrength", namespace = "urn:hl7-org:elm-modelinfo:r1")
@XmlEnum
public enum BindingStrength {
@XmlEnumValue("Required")
REQUIRED("Required"),
@XmlEnumValue("Extensible")
EXTENSIBLE("Extensible"),
@XmlEnumValue("Preferred")
PREFERRED("Preferred"),
@XmlEnumValue("Example")
EXAMPLE("Example");
private final String value;
BindingStrength(String v) {
value = v;
}
public String value() {
return value;
}
public static BindingStrength fromValue(String v) {
for (BindingStrength c: BindingStrength.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}