Class | Line # | Actions | |||
---|---|---|---|---|---|
NoValueColour | 28 | 6 | 4 |
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: 2023.11.01 at 07:03:09 PM GMT | |
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>Java class for NoValueColour. | |
16 | * | |
17 | * <p>The following schema fragment specifies the expected content | |
18 | * contained within this class. <pre> &lt;simpleType | |
19 | * name="NoValueColour"&gt; &lt;restriction | |
20 | * base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration | |
21 | * value="None"/&gt; &lt;enumeration value="Min"/&gt; | |
22 | * &lt;enumeration value="Max"/&gt; &lt;/restriction&gt; | |
23 | * &lt;/simpleType&gt; </pre> | |
24 | * | |
25 | */ | |
26 | @XmlType(name = "NoValueColour", namespace = "www.jalview.org/colours") | |
27 | @XmlEnum | |
28 | public enum NoValueColour | |
29 | { | |
30 | ||
31 | @XmlEnumValue("None") | |
32 | NONE("None"), @XmlEnumValue("Min") | |
33 | MIN("Min"), @XmlEnumValue("Max") | |
34 | MAX("Max"); | |
35 | ||
36 | private final String value; | |
37 | ||
38 | 9 | NoValueColour(String v) |
39 | { | |
40 | 9 | value = v; |
41 | } | |
42 | ||
43 | 0 | public String value() |
44 | { | |
45 | 0 | return value; |
46 | } | |
47 | ||
48 | 0 | public static NoValueColour fromValue(String v) |
49 | { | |
50 | 0 | for (NoValueColour c : NoValueColour.values()) |
51 | { | |
52 | 0 | if (c.value.equals(v)) |
53 | { | |
54 | 0 | return c; |
55 | } | |
56 | } | |
57 | 0 | throw new IllegalArgumentException(v); |
58 | } | |
59 | ||
60 | } |