Merge branch 'develop' into features/JAL-4134_use_annotation_row_for_colours_and_groups
[jalview.git] / src / jalview / xml / binding / jalview / NoValueColour.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: 2023.05.13 at 06:58:41 PM BST 
6 //
7
8 package jalview.xml.binding.jalview;
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 NoValueColour.
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="NoValueColour">
25  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
26  *     &lt;enumeration value="None"/>
27  *     &lt;enumeration value="Min"/>
28  *     &lt;enumeration value="Max"/>
29  *   &lt;/restriction>
30  * &lt;/simpleType>
31  * </pre>
32  * 
33  */
34 @XmlType(name = "NoValueColour", namespace = "www.jalview.org/colours")
35 @XmlEnum
36 public enum NoValueColour
37 {
38
39   @XmlEnumValue("None")
40   NONE("None"), @XmlEnumValue("Min")
41   MIN("Min"), @XmlEnumValue("Max")
42   MAX("Max");
43
44   private final String value;
45
46   NoValueColour(String v)
47   {
48     value = v;
49   }
50
51   public String value()
52   {
53     return value;
54   }
55
56   public static NoValueColour fromValue(String v)
57   {
58     for (NoValueColour c : NoValueColour.values())
59     {
60       if (c.value.equals(v))
61       {
62         return c;
63       }
64     }
65     throw new IllegalArgumentException(v);
66   }
67
68 }