| 1 |
|
package org.kuali.student.common.ui.client.util; |
| 2 |
|
|
| 3 |
|
import java.io.Serializable; |
| 4 |
|
import java.util.List; |
| 5 |
|
|
|
|
|
| 79% |
Uncovered Elements: 17 (81) |
Complexity: 39 |
Complexity Density: 0.95 |
|
| 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 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 16 |
34
|
public ExportElement() {... |
| 17 |
34
|
super(); |
| 18 |
|
} |
| 19 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 20 |
0
|
public ExportElement(String viewName, String sectionName) {... |
| 21 |
0
|
super(); |
| 22 |
0
|
this.viewName = viewName; |
| 23 |
0
|
this.sectionName = sectionName; |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
private String sectionName; |
| 27 |
|
private List<ExportElement> subset; |
| 28 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 29 |
0
|
public String getViewName() {... |
| 30 |
0
|
return viewName; |
| 31 |
|
} |
| 32 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 33 |
0
|
public void setViewName(String viewName) {... |
| 34 |
0
|
this.viewName = viewName; |
| 35 |
|
} |
| 36 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 37 |
84
|
public String getSectionName() {... |
| 38 |
84
|
return sectionName; |
| 39 |
|
} |
| 40 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 41 |
18
|
public void setSectionName(String sectionName) {... |
| 42 |
18
|
this.sectionName = sectionName; |
| 43 |
|
} |
| 44 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 45 |
88
|
public String getFieldLabel() {... |
| 46 |
88
|
return fieldLabel; |
| 47 |
|
} |
| 48 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 49 |
22
|
public void setFieldLabel(String fieldLabel) {... |
| 50 |
22
|
this.fieldLabel = fieldLabel; |
| 51 |
|
} |
| 52 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
96
|
public String getFieldValue() {... |
| 54 |
96
|
return this.fieldValue; |
| 55 |
|
} |
| 56 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
| 57 |
25
|
public void setFieldValue(String fieldValue) {... |
| 58 |
25
|
this.fieldValue = fieldValue; |
| 59 |
25
|
if (this.fieldValue != null && this.fieldValue.equals("")) { |
| 60 |
1
|
System.out.println("Stop gou hier"); |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 64 |
48
|
public boolean isSub() {... |
| 65 |
48
|
return subset != null; |
| 66 |
|
} |
| 67 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 68 |
48
|
public List<ExportElement> getSubset() {... |
| 69 |
48
|
return subset; |
| 70 |
|
} |
| 71 |
|
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 3 |
Complexity Density: 1.5 |
|
| 72 |
7
|
public void setSubset(List<ExportElement> subset) {... |
| 73 |
7
|
if (subset != null && subset.size() > 0) { |
| 74 |
7
|
this.subset = subset; |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 78 |
48
|
public boolean isMandatory() {... |
| 79 |
48
|
return isMandatory; |
| 80 |
|
} |
| 81 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 82 |
4
|
public void setMandatory(boolean isMandatory) {... |
| 83 |
4
|
this.isMandatory = isMandatory; |
| 84 |
|
} |
| 85 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 86 |
18
|
public String getFieldValue2() {... |
| 87 |
18
|
return fieldValue2; |
| 88 |
|
} |
| 89 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 90 |
14
|
public void setFieldValue2(String fieldValue2) {... |
| 91 |
14
|
this.fieldValue2 = fieldValue2; |
| 92 |
|
} |
| 93 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 94 |
48
|
public String getKey() {... |
| 95 |
48
|
if (this.getFieldLabel() != null) { |
| 96 |
40
|
return this.getFieldLabel(); |
| 97 |
|
} |
| 98 |
8
|
return ""; |
| 99 |
|
} |
| 100 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 101 |
42
|
public String getValue() {... |
| 102 |
42
|
if (this.getFieldValue() != null) { |
| 103 |
34
|
return getFieldValue(); |
| 104 |
|
} |
| 105 |
8
|
return ""; |
| 106 |
|
} |
| 107 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 108 |
11
|
public String getProposalValue() {... |
| 109 |
11
|
if (this.getFieldValue() != null) { |
| 110 |
9
|
return getFieldValue(); |
| 111 |
|
} |
| 112 |
2
|
return ""; |
| 113 |
|
} |
| 114 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 115 |
11
|
public String getOriginalValue() {... |
| 116 |
11
|
if (this.getFieldValue2() != null) { |
| 117 |
7
|
return this.getFieldValue2(); |
| 118 |
|
} |
| 119 |
4
|
return ""; |
| 120 |
|
} |
| 121 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 4 |
Complexity Density: 1.33 |
|
| 122 |
0
|
public boolean isDataEmpty() {... |
| 123 |
0
|
if ((this.fieldLabel == null) && (this.fieldValue == null) && (this.fieldValue2 == null)) { |
| 124 |
0
|
return true; |
| 125 |
|
} |
| 126 |
0
|
return false; |
| 127 |
|
} |
| 128 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 5 |
Complexity Density: 1.67 |
|
| 129 |
111
|
public boolean isEmpty() {... |
| 130 |
111
|
if ((this.fieldLabel == null) && (this.fieldValue == null) && (this.fieldValue2 == null) && (this.subset == null)) { |
| 131 |
5
|
return true; |
| 132 |
|
} |
| 133 |
106
|
return false; |
| 134 |
|
} |
| 135 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 136 |
0
|
public String toString() {... |
| 137 |
0
|
return this.sectionName + " - " + this.viewName + " - " + this.getFieldLabel() + " - " + this.getFieldValue() + " - " + this.getFieldValue2(); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
} |