View Javadoc
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 Hl7V2EncodingTypeEnum.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * <pre>
21   * &lt;simpleType name="Hl7V2EncodingTypeEnum"&gt;
22   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
23   *     &lt;enumeration value="ER7"/&gt;
24   *     &lt;enumeration value="XML"/&gt;
25   *   &lt;/restriction&gt;
26   * &lt;/simpleType&gt;
27   * </pre>
28   * 
29   */
30  @XmlType(name = "Hl7V2EncodingTypeEnum")
31  @XmlEnum
32  public enum Hl7V2EncodingTypeEnum {
33  
34      @XmlEnumValue("ER7")
35      ER_7("ER7"),
36      XML("XML");
37      private final String value;
38  
39      Hl7V2EncodingTypeEnum(String v) {
40          value = v;
41      }
42  
43      public String value() {
44          return value;
45      }
46  
47      public static Hl7V2EncodingTypeEnum fromValue(String v) {
48          for (Hl7V2EncodingTypeEnum c: Hl7V2EncodingTypeEnum.values()) {
49              if (c.value.equals(v)) {
50                  return c;
51              }
52          }
53          throw new IllegalArgumentException(v);
54      }
55  
56  }