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
8 package jalview.xml.binding.jalview;
10 import javax.xml.bind.annotation.XmlEnum;
11 import javax.xml.bind.annotation.XmlEnumValue;
12 import javax.xml.bind.annotation.XmlType;
15 * <p>Java class for FilterBy.
17 * <p>The following schema fragment specifies the expected content
18 * contained within this class. <pre> &lt;simpleType
19 * name="FilterBy"&gt; &lt;restriction
20 * base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration
21 * value="byLabel"/&gt; &lt;enumeration value="byScore"/&gt;
22 * &lt;enumeration value="byAttribute"/&gt; &lt;/restriction&gt;
23 * &lt;/simpleType&gt; </pre>
26 @XmlType(name = "FilterBy", namespace = "www.jalview.org/colours")
31 @XmlEnumValue("byLabel")
32 BY_LABEL("byLabel"), @XmlEnumValue("byScore")
33 BY_SCORE("byScore"), @XmlEnumValue("byAttribute")
34 BY_ATTRIBUTE("byAttribute");
36 private final String value;
48 public static FilterBy fromValue(String v)
50 for (FilterBy c : FilterBy.values())
52 if (c.value.equals(v))
57 throw new IllegalArgumentException(v);