JAL-1551 spotlessApply
[jalview.git] / src / jalview / xml / binding / jalview / FilterBy.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.03.17 at 05:31:44 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>
16  * Java class for FilterBy.
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="FilterBy">
25  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
26  *     &lt;enumeration value="byLabel"/>
27  *     &lt;enumeration value="byScore"/>
28  *     &lt;enumeration value="byAttribute"/>
29  *   &lt;/restriction>
30  * &lt;/simpleType>
31  * </pre>
32  * 
33  */
34 @XmlType(name = "FilterBy", namespace = "www.jalview.org/colours")
35 @XmlEnum
36 public enum FilterBy
37 {
38
39   @XmlEnumValue("byLabel")
40   BY_LABEL("byLabel"), @XmlEnumValue("byScore")
41   BY_SCORE("byScore"), @XmlEnumValue("byAttribute")
42   BY_ATTRIBUTE("byAttribute");
43
44   private final String value;
45
46   FilterBy(String v)
47   {
48     value = v;
49   }
50
51   public String value()
52   {
53     return value;
54   }
55
56   public static FilterBy fromValue(String v)
57   {
58     for (FilterBy c : FilterBy.values())
59     {
60       if (c.value.equals(v))
61       {
62         return c;
63       }
64     }
65     throw new IllegalArgumentException(v);
66   }
67
68 }