Clover Coverage Report - KS LUM UI Common 1.2-M4-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
17   71   13   1.55
4   55   0.76   5.5
11     1.18  
2    
 
  CluSetRangeHelper       Line # 6 15 0% 11 28 0% 0.0
  CluSetRangeHelper.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 CluSetRangeHelper {
7   
 
8    public enum Properties implements PropertyEnum
9    {
10    ID ("id"),
11    SEARCH_TYPE_KEY ("searchTypeKey"),
12    QUERY_PARAMS ("queryParams");
13   
14   
15    private final String key;
16   
 
17  0 toggle private Properties (final String key) {
18  0 this.key = key;
19    }
20   
 
21  0 toggle @Override
22    public String getKey() {
23  0 return this.key;
24    }
25    }
26   
27    private Data data;
28   
 
29  0 toggle public CluSetRangeHelper(Data data) {
30  0 this.data = data;
31    }
32   
 
33  0 toggle public static CluSetRangeHelper wrap(Data data) {
34  0 if (data == null) {
35  0 return null;
36    }
37  0 return new CluSetRangeHelper(data);
38    }
39   
 
40  0 toggle public void setId(String value) {
41  0 data.set(Properties.ID.getKey(), value);
42    }
43   
 
44  0 toggle public String getId() {
45  0 return data.get(Properties.ID.getKey());
46    }
47   
 
48  0 toggle public void setSearchTypeKey(String value) {
49  0 data.set(Properties.SEARCH_TYPE_KEY.getKey(), value);
50    }
51   
 
52  0 toggle public String getSearchTypeKey() {
53  0 return data.get(Properties.SEARCH_TYPE_KEY.getKey());
54    }
55   
 
56  0 toggle public void setQueryParams(Data value) {
57  0 data.set(Properties.QUERY_PARAMS.getKey(), value);
58    }
 
59  0 toggle public Data getQueryParams() {
60  0 Data queryParams = data.get(Properties.QUERY_PARAMS.getKey());
61  0 if (queryParams == null) {
62  0 queryParams = new Data();
63  0 setQueryParams(queryParams);
64    }
65  0 return queryParams;
66    }
67   
 
68  0 toggle public Data getData() {
69  0 return data;
70    }
71    }