JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / xml / binding / jalview / FilterBy.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 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 FilterBy.
16  * 
17  * <p>The following schema fragment specifies the expected content
18  * contained within this class. <pre> <simpleType
19  * name="FilterBy"> <restriction
20  * base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration
21  * value="byLabel"/> <enumeration value="byScore"/>
22  * <enumeration value="byAttribute"/> </restriction>
23  * </simpleType> </pre>
24  * 
25  */
26 @XmlType(name = "FilterBy", namespace = "www.jalview.org/colours")
27 @XmlEnum
28 public enum FilterBy
29 {
30
31   @XmlEnumValue("byLabel")
32   BY_LABEL("byLabel"), @XmlEnumValue("byScore")
33   BY_SCORE("byScore"), @XmlEnumValue("byAttribute")
34   BY_ATTRIBUTE("byAttribute");
35
36   private final String value;
37
38   FilterBy(String v)
39   {
40     value = v;
41   }
42
43   public String value()
44   {
45     return value;
46   }
47
48   public static FilterBy fromValue(String v)
49   {
50     for (FilterBy c : FilterBy.values())
51     {
52       if (c.value.equals(v))
53       {
54         return c;
55       }
56     }
57     throw new IllegalArgumentException(v);
58   }
59
60 }