Clover icon

Coverage Report

  1. Project Clover database Thu Aug 13 2020 12:04:21 BST
  2. Package jalview.xml.binding.sifts

File EntityType.java

 

Coverage histogram

../../../../img/srcFileCovDistChart2.png
50% of files have more coverage

Code metrics

2
6
3
1
62
29
4
0.67
2
3
1.33

Classes

Class Line # Actions
EntityType 35 6 4
0.1818181918.2%
 

Contributing tests

No tests hitting this source file were found.

Source view

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: 2015.10.09 at 03:18:33 PM BST
6    //
7   
8   
9    package jalview.xml.binding.sifts;
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 entityType.
18    *
19    * <p>The following schema fragment specifies the expected content contained within this class.
20    * <p>
21    * <pre>
22    * &lt;simpleType name="entityType">
23    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
24    * &lt;enumeration value="protein"/>
25    * &lt;enumeration value="RNA"/>
26    * &lt;enumeration value="DNA"/>
27    * &lt;enumeration value="domain"/>
28    * &lt;/restriction>
29    * &lt;/simpleType>
30    * </pre>
31    *
32    */
33    @XmlType(name = "entityType", namespace = "http://www.ebi.ac.uk/pdbe/docs/sifts/dataTypes.xsd")
34    @XmlEnum
 
35    public enum EntityType {
36   
37    @XmlEnumValue("protein")
38    PROTEIN("protein"),
39    RNA("RNA"),
40    DNA("DNA"),
41    @XmlEnumValue("domain")
42    DOMAIN("domain");
43    private final String value;
44   
 
45  4 toggle EntityType(String v) {
46  4 value = v;
47    }
48   
 
49  0 toggle public String value() {
50  0 return value;
51    }
52   
 
53  0 toggle public static EntityType fromValue(String v) {
54  0 for (EntityType c: EntityType.values()) {
55  0 if (c.value.equals(v)) {
56  0 return c;
57    }
58    }
59  0 throw new IllegalArgumentException(v);
60    }
61   
62    }