Copyright test
[jalview.git] / src / jalview / xml / binding / sifts / EntityType.java
1 /*******************************************************************************
2  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3  * Copyright (C) $(date) The Jalview Authors
4  *
5  * This file is part of Jalview.
6  *  
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3
10  * of the License, or (at your option) any later version.
11  *   
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
19  * The Jalview Authors are detailed in the 'AUTHORS' file.
20  *******************************************************************************/
21 //
22 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
23 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
24 // Any modifications to this file will be lost upon recompilation of the source schema. 
25 // Generated on: 2015.10.09 at 03:18:33 PM BST 
26 //
27
28
29 package jalview.xml.binding.sifts;
30
31 import javax.xml.bind.annotation.XmlEnum;
32 import javax.xml.bind.annotation.XmlEnumValue;
33 import javax.xml.bind.annotation.XmlType;
34
35
36 /**
37  * <p>Java class for entityType.
38  * 
39  * <p>The following schema fragment specifies the expected content contained within this class.
40  * <p>
41  * <pre>
42  * &lt;simpleType name="entityType">
43  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
44  *     &lt;enumeration value="protein"/>
45  *     &lt;enumeration value="RNA"/>
46  *     &lt;enumeration value="DNA"/>
47  *     &lt;enumeration value="domain"/>
48  *   &lt;/restriction>
49  * &lt;/simpleType>
50  * </pre>
51  * 
52  */
53 @XmlType(name = "entityType", namespace = "http://www.ebi.ac.uk/pdbe/docs/sifts/dataTypes.xsd")
54 @XmlEnum
55 public enum EntityType {
56
57     @XmlEnumValue("protein")
58     PROTEIN("protein"),
59     RNA("RNA"),
60     DNA("DNA"),
61     @XmlEnumValue("domain")
62     DOMAIN("domain");
63     private final String value;
64
65     EntityType(String v) {
66         value = v;
67     }
68
69     public String value() {
70         return value;
71     }
72
73     public static EntityType fromValue(String v) {
74         for (EntityType c: EntityType.values()) {
75             if (c.value.equals(v)) {
76                 return c;
77             }
78         }
79         throw new IllegalArgumentException(v);
80     }
81
82 }