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