Class | Line # | Actions | |||
---|---|---|---|---|---|
FilterBy | 34 | 6 | 4 |
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: 2019.06.07 at 02:21:15 PM 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 | * <p> | |
21 | * <pre> | |
22 | * <simpleType name="FilterBy"> | |
23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | |
24 | * <enumeration value="byLabel"/> | |
25 | * <enumeration value="byScore"/> | |
26 | * <enumeration value="byAttribute"/> | |
27 | * </restriction> | |
28 | * </simpleType> | |
29 | * </pre> | |
30 | * | |
31 | */ | |
32 | @XmlType(name = "FilterBy", namespace = "www.jalview.org/colours") | |
33 | @XmlEnum | |
34 | public enum FilterBy { | |
35 | ||
36 | @XmlEnumValue("byLabel") | |
37 | BY_LABEL("byLabel"), | |
38 | @XmlEnumValue("byScore") | |
39 | BY_SCORE("byScore"), | |
40 | @XmlEnumValue("byAttribute") | |
41 | BY_ATTRIBUTE("byAttribute"); | |
42 | private final String value; | |
43 | ||
44 | 3 | FilterBy(String v) { |
45 | 3 | value = v; |
46 | } | |
47 | ||
48 | 0 | public String value() { |
49 | 0 | return value; |
50 | } | |
51 | ||
52 | 0 | public static FilterBy fromValue(String v) { |
53 | 0 | for (FilterBy c: FilterBy.values()) { |
54 | 0 | if (c.value.equals(v)) { |
55 | 0 | return c; |
56 | } | |
57 | } | |
58 | 0 | throw new IllegalArgumentException(v); |
59 | } | |
60 | ||
61 | } |