7e42db88649dd71d92fc4b76055379055d998411
[jalview.git] / src / jalview / xml / binding / jalview / NoValueColour.java
1 //
2 // This file was generated by the Eclipse Implementation of JAXB, v2.3.3 
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: 2021.08.30 at 11:05:22 AM BST 
6 //
7
8
9 package jalview.xml.binding.jalview;
10
11 import javax.xml.bind.annotation.XmlEnum;
12 import javax.xml.bind.annotation.XmlEnumValue;
13 import javax.xml.bind.annotation.XmlType;
14
15
16 /**
17  * <p>Java class for NoValueColour.
18  * 
19  * <p>The following schema fragment specifies the expected content contained within this class.
20  * <pre>
21  * <simpleType name="NoValueColour">
22  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
23  *     <enumeration value="None"/>
24  *     <enumeration value="Min"/>
25  *     <enumeration value="Max"/>
26  *   </restriction>
27  * </simpleType>
28  * </pre>
29  * 
30  */
31 @XmlType(name = "NoValueColour", namespace = "www.jalview.org/colours")
32 @XmlEnum
33 public enum NoValueColour {
34
35     @XmlEnumValue("None")
36     NONE("None"),
37     @XmlEnumValue("Min")
38     MIN("Min"),
39     @XmlEnumValue("Max")
40     MAX("Max");
41     private final String value;
42
43     NoValueColour(String v) {
44         value = v;
45     }
46
47     public String value() {
48         return value;
49     }
50
51     public static NoValueColour fromValue(String v) {
52         for (NoValueColour c: NoValueColour.values()) {
53             if (c.value.equals(v)) {
54                 return c;
55             }
56         }
57         throw new IllegalArgumentException(v);
58     }
59
60 }