Clover Coverage Report - Kuali Student 1.2-M6-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Sep 12 2011 05:03:53 EDT
../../../../../../../img/srcFileCovDistChart0.png 42% of files have more coverage
17   72   13   1.55
4   55   0.76   5.5
11     1.18  
2    
 
  QueryParamHelper       Line # 6 15 0% 11 28 0% 0.0
  QueryParamHelper.Properties       Line # 8 2 0% 2 4 0% 0.0
 
No Tests
 
1    package org.kuali.student.lum.common.client.widgets;
2   
3    import org.kuali.student.common.assembly.data.Data;
4    import org.kuali.student.common.assembly.helper.PropertyEnum;
5   
 
6    public class QueryParamHelper {
7   
 
8    public enum Properties implements PropertyEnum
9    {
10    VALUE ("value"),
11    LIST_VALUE ("listValue"),
12    KEY ("key");
13   
14    private final String key;
15   
 
16  0 toggle private Properties (final String key) {
17  0 this.key = key;
18    }
19   
 
20  0 toggle @Override
21    public String getKey() {
22  0 return this.key;
23    }
24    }
25   
26    private Data data;
27   
 
28  0 toggle public QueryParamHelper(Data data) {
29  0 this.data = data;
30    }
31   
 
32  0 toggle public static QueryParamHelper wrap(Data data) {
33  0 if (data == null) {
34  0 return null;
35    }
36  0 return new QueryParamHelper(data);
37    }
38   
 
39  0 toggle public void setValue(String value) {
40  0 data.set(Properties.VALUE.getKey(), value);
41    }
42   
 
43  0 toggle public String getValue() {
44  0 return (String) data.get(Properties.VALUE.getKey());
45    }
46   
 
47  0 toggle public void setListValue(Data value) {
48  0 data.set(Properties.LIST_VALUE.getKey(), value);
49    }
50   
 
51  0 toggle public Data getListValue() {
52  0 Data listValue = data.get(Properties.LIST_VALUE.getKey());
53  0 if (listValue == null) {
54  0 listValue = new Data();
55  0 setListValue(listValue);
56    }
57  0 return listValue;
58    }
59   
 
60  0 toggle public void setKey(String value) {
61  0 data.set(Properties.KEY.getKey(), value);
62    }
63   
 
64  0 toggle public String getKey() {
65  0 return (String) data.get(Properties.KEY.getKey());
66    }
67   
 
68  0 toggle public Data getData() {
69  0 return data;
70    }
71   
72    }