Clover icon

Coverage Report

  1. Project Clover database Thu Dec 4 2025 14:43:25 GMT
  2. Package jalview.ws2.params

File ArgumentBean.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
60% of files have more coverage

Code metrics

0
13
9
1
82
59
9
0.69
1.44
9
1

Classes

Class Line # Actions
ArgumentBean 18 13 9
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package jalview.ws2.params;
2   
3    import javax.xml.bind.annotation.XmlAttribute;
4    import javax.xml.bind.annotation.XmlElement;
5    import javax.xml.bind.annotation.XmlRootElement;
6   
7    import jalview.ws.params.ArgumentI;
8   
9    /**
10    * A minimal bean implementing {@link ArgumentI} which stores argument
11    * name, label and value. It's mainly used to marshal and unmarshal
12    * parameter values of a preset.
13    *
14    * @author mmwarowny
15    *
16    */
17    @XmlRootElement(name = "parameter")
 
18    class ArgumentBean implements ArgumentI
19    {
20    String name;
21   
22    String label;
23   
24    String value;
25   
 
26  0 toggle ArgumentBean()
27    {
28  0 this.name = null;
29  0 this.label = null;
30  0 this.value = null;
31    }
32   
 
33  0 toggle ArgumentBean(ArgumentI copyof)
34    {
35  0 this.name = copyof.getName();
36  0 this.label = copyof.getLabel();
37  0 this.value = copyof.getValue();
38    }
39   
 
40  0 toggle @XmlAttribute
41    @Override
42    public String getName()
43    {
44  0 return name;
45    }
46   
 
47  0 toggle public void setName(String name)
48    {
49  0 this.name = name;
50    }
51   
 
52  0 toggle @XmlElement
53    @Override
54    public String getLabel()
55    {
56  0 return label;
57    }
58   
 
59  0 toggle public void setLabel(String label)
60    {
61  0 this.label = label;
62    }
63   
 
64  0 toggle @XmlElement
65    @Override
66    public String getValue()
67    {
68  0 return value;
69    }
70   
 
71  0 toggle @Override
72    public void setValue(String selectedItem)
73    {
74  0 this.value = selectedItem;
75    }
76   
 
77  0 toggle @Override
78    public String toString()
79    {
80  0 return String.format("Parameter(name=%s, value=%s)", name, value);
81    }
82    }