Clover icon

Coverage Report

  1. Project Clover database Wed Nov 13 2024 16:12:26 GMT
  2. Package jalview.xml.binding.jalview

File NoValueColour.java

 

Coverage histogram

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

Code metrics

2
6
3
1
60
33
4
0.67
2
3
1.33

Classes

Class Line # Actions
NoValueColour 28 6 4
0.1818181918.2%
 

Contributing tests

This file is covered by 1 test. .

Source view

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: 2023.11.01 at 07:03:09 PM GMT
6    //
7   
8    package jalview.xml.binding.jalview;
9   
10    import javax.xml.bind.annotation.XmlEnum;
11    import javax.xml.bind.annotation.XmlEnumValue;
12    import javax.xml.bind.annotation.XmlType;
13   
14    /**
15    * <p>Java class for NoValueColour.
16    *
17    * <p>The following schema fragment specifies the expected content
18    * contained within this class. <pre> <simpleType
19    * name="NoValueColour"> <restriction
20    * base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration
21    * value="None"/> <enumeration value="Min"/>
22    * <enumeration value="Max"/> </restriction>
23    * </simpleType> </pre>
24    *
25    */
26    @XmlType(name = "NoValueColour", namespace = "www.jalview.org/colours")
27    @XmlEnum
 
28    public enum NoValueColour
29    {
30   
31    @XmlEnumValue("None")
32    NONE("None"), @XmlEnumValue("Min")
33    MIN("Min"), @XmlEnumValue("Max")
34    MAX("Max");
35   
36    private final String value;
37   
 
38  9 toggle NoValueColour(String v)
39    {
40  9 value = v;
41    }
42   
 
43  0 toggle public String value()
44    {
45  0 return value;
46    }
47   
 
48  0 toggle public static NoValueColour fromValue(String v)
49    {
50  0 for (NoValueColour c : NoValueColour.values())
51    {
52  0 if (c.value.equals(v))
53    {
54  0 return c;
55    }
56    }
57  0 throw new IllegalArgumentException(v);
58    }
59   
60    }