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 |
|
|
|
|
| 0% |
Uncovered Elements: 28 (28) |
Complexity: 11 |
Complexity Density: 0.73 |
|
6 |
|
public class CluSetRangeHelper { |
7 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
17 |
0
|
private Properties (final String key) {... |
18 |
0
|
this.key = key; |
19 |
|
} |
20 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
21 |
0
|
@Override... |
22 |
|
public String getKey() { |
23 |
0
|
return this.key; |
24 |
|
} |
25 |
|
} |
26 |
|
|
27 |
|
private Data data; |
28 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
29 |
0
|
public CluSetRangeHelper(Data data) {... |
30 |
0
|
this.data = data; |
31 |
|
} |
32 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
33 |
0
|
public static CluSetRangeHelper wrap(Data data) {... |
34 |
0
|
if (data == null) { |
35 |
0
|
return null; |
36 |
|
} |
37 |
0
|
return new CluSetRangeHelper(data); |
38 |
|
} |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
0
|
public void setId(String value) {... |
41 |
0
|
data.set(Properties.ID.getKey(), value); |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
public String getId() {... |
45 |
0
|
return data.get(Properties.ID.getKey()); |
46 |
|
} |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
0
|
public void setSearchTypeKey(String value) {... |
49 |
0
|
data.set(Properties.SEARCH_TYPE_KEY.getKey(), value); |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
0
|
public String getSearchTypeKey() {... |
53 |
0
|
return data.get(Properties.SEARCH_TYPE_KEY.getKey()); |
54 |
|
} |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
0
|
public void setQueryParams(Data value) {... |
57 |
0
|
data.set(Properties.QUERY_PARAMS.getKey(), value); |
58 |
|
} |
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
59 |
0
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0
|
public Data getData() {... |
69 |
0
|
return data; |
70 |
|
} |
71 |
|
} |