1 |
|
package org.kuali.student.common.ui.client.util; |
2 |
|
|
3 |
|
import java.io.Serializable; |
4 |
|
import java.util.List; |
5 |
|
|
|
|
| 0% |
Uncovered Elements: 53 (53) |
Complexity: 24 |
Complexity Density: 0.89 |
|
6 |
|
public class ExportElement implements Serializable { |
7 |
|
|
8 |
|
private static final long serialVersionUID = 1L; |
9 |
|
private String fieldLabel; |
10 |
|
private boolean isMandatory; |
11 |
|
|
12 |
|
private String fieldValue; |
13 |
|
private String fieldValue2; |
14 |
|
private String viewName; |
15 |
|
private String sectionName; |
16 |
|
private List<ExportElement> subset; |
17 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
18 |
0
|
public String getViewName() {... |
19 |
0
|
return viewName; |
20 |
|
} |
21 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
22 |
0
|
public void setViewName(String viewName) {... |
23 |
0
|
this.viewName = viewName; |
24 |
|
} |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
26 |
0
|
public String getSectionName() {... |
27 |
0
|
return sectionName; |
28 |
|
} |
29 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
30 |
0
|
public void setSectionName(String sectionName) {... |
31 |
0
|
this.sectionName = sectionName; |
32 |
|
} |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
0
|
public String getFieldLabel() {... |
35 |
0
|
return fieldLabel; |
36 |
|
} |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
0
|
public void setFieldLabel(String fieldLabel) {... |
39 |
0
|
this.fieldLabel = fieldLabel; |
40 |
|
} |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
42 |
0
|
public String getFieldValue() {... |
43 |
0
|
if (fieldValue != null) { |
44 |
0
|
return fieldValue; |
45 |
|
} |
46 |
0
|
return ""; |
47 |
|
} |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0
|
public void setFieldValue(String fieldValue) {... |
50 |
0
|
this.fieldValue = fieldValue; |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0
|
public String getKey() {... |
54 |
0
|
return fieldLabel; |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0
|
public boolean isSub() {... |
58 |
0
|
return subset != null; |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
public List<ExportElement> getSubset() {... |
62 |
0
|
return subset; |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 3 |
Complexity Density: 1.5 |
|
65 |
0
|
public void setSubset(List<ExportElement> subset) {... |
66 |
0
|
if (subset != null && subset.size() > 0) { |
67 |
0
|
this.subset = subset; |
68 |
|
} |
69 |
|
} |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public boolean isMandatory() {... |
72 |
0
|
return isMandatory; |
73 |
|
} |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0
|
public void setMandatory(boolean isMandatory) {... |
76 |
0
|
this.isMandatory = isMandatory; |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
79 |
0
|
public String getFieldValue2() {... |
80 |
0
|
if (fieldValue2 != null) { |
81 |
0
|
return fieldValue2; |
82 |
|
} |
83 |
0
|
return ""; |
84 |
|
} |
85 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
0
|
public void setFieldValue2(String fieldValue2) {... |
87 |
0
|
this.fieldValue2 = fieldValue2; |
88 |
|
} |
89 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
0
|
public String getValue() {... |
91 |
0
|
return this.getFieldValue(); |
92 |
|
} |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0
|
public String getProposalValue() {... |
95 |
0
|
return this.getFieldValue(); |
96 |
|
} |
97 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
0
|
public String getOriginalValue() {... |
99 |
0
|
return this.getFieldValue2(); |
100 |
|
} |
101 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
102 |
0
|
public String printLine() {... |
103 |
0
|
String output = new String(); |
104 |
0
|
output = this.sectionName + " - " + this.viewName + " - " + this.getFieldLabel() + " - " + this.getFieldValue() + " - " + this.getFieldValue2(); |
105 |
0
|
return output; |
106 |
|
} |
107 |
|
|
108 |
|
} |