1 //
2 // This file was generated by the Eclipse Implementation of JAXB, v3.0.0
3 // See https://eclipse-ee4j.github.io/jaxb-ri
4 // Any modifications to this file will be lost upon recompilation of the source schema.
5 // Generated on: 2023.11.01 at 04:26:55 PM EDT
6 //
7
8
9 package ca.uhn.hl7v2.testpanel.xsd;
10
11 import jakarta.xml.bind.annotation.XmlEnum;
12 import jakarta.xml.bind.annotation.XmlEnumValue;
13 import jakarta.xml.bind.annotation.XmlType;
14
15
16 /**
17 * <p>Java class for MesssageTypeEnum.
18 *
19 * <p>The following schema fragment specifies the expected content contained within this class.
20 * <pre>
21 * <simpleType name="MesssageTypeEnum">
22 * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
23 * <enumeration value="HL7v2"/>
24 * <enumeration value="XML"/>
25 * </restriction>
26 * </simpleType>
27 * </pre>
28 *
29 */
30 @XmlType(name = "MesssageTypeEnum")
31 @XmlEnum
32 public enum MesssageTypeEnum {
33
34 @XmlEnumValue("HL7v2")
35 HL_7_V_2("HL7v2"),
36 XML("XML");
37 private final String value;
38
39 MesssageTypeEnum(String v) {
40 value = v;
41 }
42
43 public String value() {
44 return value;
45 }
46
47 public static MesssageTypeEnum fromValue(String v) {
48 for (MesssageTypeEnum c: MesssageTypeEnum.values()) {
49 if (c.value.equals(v)) {
50 return c;
51 }
52 }
53 throw new IllegalArgumentException(v);
54 }
55
56 }