JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / xml / binding / sifts / EntityType.java
1 //
2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4 // Any modifications to this file will be lost upon recompilation of the source schema. 
5 // Generated on: 2015.10.09 at 03:18:33 PM BST 
6 //
7
8 package jalview.xml.binding.sifts;
9
10 import javax.xml.bind.annotation.XmlEnum;
11 import javax.xml.bind.annotation.XmlEnumValue;
12 import javax.xml.bind.annotation.XmlType;
13
14 /**
15  * <p>
16  * Java class for entityType.
17  * 
18  * <p>
19  * The following schema fragment specifies the expected content contained within
20  * this class.
21  * <p>
22  * 
23  * <pre>
24  * &lt;simpleType name="entityType">
25  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
26  *     &lt;enumeration value="protein"/>
27  *     &lt;enumeration value="RNA"/>
28  *     &lt;enumeration value="DNA"/>
29  *     &lt;enumeration value="domain"/>
30  *   &lt;/restriction>
31  * &lt;/simpleType>
32  * </pre>
33  * 
34  */
35 @XmlType(
36   name = "entityType",
37   namespace = "http://www.ebi.ac.uk/pdbe/docs/sifts/dataTypes.xsd")
38 @XmlEnum
39 public enum EntityType
40 {
41
42   @XmlEnumValue("protein")
43   PROTEIN("protein"), RNA("RNA"), DNA("DNA"), @XmlEnumValue("domain")
44   DOMAIN("domain");
45
46   private final String value;
47
48   EntityType(String v)
49   {
50     value = v;
51   }
52
53   public String value()
54   {
55     return value;
56   }
57
58   public static EntityType fromValue(String v)
59   {
60     for (EntityType c : EntityType.values())
61     {
62       if (c.value.equals(v))
63       {
64         return c;
65       }
66     }
67     throw new IllegalArgumentException(v);
68   }
69
70 }