1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.lum.common.client.lo; |
17 |
|
|
18 |
|
|
19 |
|
import org.kuali.student.common.assembly.data.Data; |
20 |
|
import org.kuali.student.common.assembly.helper.PropertyEnum; |
21 |
|
|
22 |
|
|
|
|
| 0% |
Uncovered Elements: 28 (28) |
Complexity: 14 |
Complexity Density: 1 |
|
23 |
|
public class LoInfoHelper { |
24 |
|
private Data data; |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
26 |
|
public enum Properties implements PropertyEnum { |
27 |
|
NAME("name"), |
28 |
|
DESC("desc"), |
29 |
|
ID("id"), |
30 |
|
SEQUENCE("sequence"), |
31 |
|
METAINFO("metaInfo"); |
32 |
|
|
33 |
|
private final String key; |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0
|
private Properties(final String key) {... |
36 |
0
|
this.key = key; |
37 |
|
} |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
39 |
0
|
@Override... |
40 |
|
public String getKey() { |
41 |
0
|
return this.key; |
42 |
|
} |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
0
|
public LoInfoHelper() {... |
46 |
0
|
data = new Data(); |
47 |
|
} |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0
|
public LoInfoHelper(Data data) {... |
50 |
0
|
this.data = data; |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0
|
public Data getData() {... |
54 |
0
|
return data; |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0
|
public void setData(Data data) {... |
58 |
0
|
this.data = data; |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
public void setName(String name) {... |
62 |
0
|
data.set(LoInfoHelper.Properties.NAME.getKey(), name); |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public String getName() {... |
66 |
0
|
return (String) data.get(Properties.NAME.getKey()); |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0
|
public void setDesc(Data descData) {... |
70 |
0
|
HelperUtil.setDataField(LoInfoHelper.Properties.DESC, data, descData); |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0
|
public Data getDesc() {... |
74 |
0
|
return HelperUtil.getDataField(LoInfoHelper.Properties.DESC, data); |
75 |
|
} |
76 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
0
|
public void setId(String id) {... |
78 |
0
|
data.set(LoInfoHelper.Properties.ID.getKey(), id); |
79 |
|
} |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0
|
public String getId() {... |
82 |
0
|
return (String) data.get(LoInfoHelper.Properties.ID.getKey()); |
83 |
|
} |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0
|
public void setSequence(String sequence) {... |
86 |
0
|
data.set(LoInfoHelper.Properties.SEQUENCE.getKey(), sequence); |
87 |
|
} |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0
|
public String getSequence() {... |
90 |
0
|
return (String) data.get(LoInfoHelper.Properties.SEQUENCE.getKey()); |
91 |
|
} |
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0
|
public void setMetaInfo(Data metaInfoData) {... |
94 |
0
|
HelperUtil.setDataField(LoInfoHelper.Properties.METAINFO, data, metaInfoData); |
95 |
|
} |
96 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
0
|
public Data getMetaInfo() {... |
98 |
0
|
return HelperUtil.getDataField(LoInfoHelper.Properties.METAINFO, data); |
99 |
|
} |
100 |
|
|
101 |
|
} |