1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
23 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
24 // Any modifications to this file will be lost upon recompilation of the source schema.
25 // Generated on: 2015.10.09 at 03:18:33 PM BST
29 package jalview.xml.binding.sifts;
31 import javax.xml.bind.annotation.XmlEnum;
32 import javax.xml.bind.annotation.XmlEnumValue;
33 import javax.xml.bind.annotation.XmlType;
37 * <p>Java class for entityType.
39 * <p>The following schema fragment specifies the expected content contained within this class.
42 * <simpleType name="entityType">
43 * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
44 * <enumeration value="protein"/>
45 * <enumeration value="RNA"/>
46 * <enumeration value="DNA"/>
47 * <enumeration value="domain"/>
53 @XmlType(name = "entityType", namespace = "http://www.ebi.ac.uk/pdbe/docs/sifts/dataTypes.xsd")
55 public enum EntityType {
57 @XmlEnumValue("protein")
61 @XmlEnumValue("domain")
63 private final String value;
65 EntityType(String v) {
69 public String value() {
73 public static EntityType fromValue(String v) {
74 for (EntityType c: EntityType.values()) {
75 if (c.value.equals(v)) {
79 throw new IllegalArgumentException(v);