1 | |
package org.kuali.student.common.ui.client.util; |
2 | |
|
3 | |
import java.io.Serializable; |
4 | |
import java.util.List; |
5 | |
|
6 | 0 | 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 | |
|
18 | |
public String getViewName() { |
19 | 0 | return viewName; |
20 | |
} |
21 | |
|
22 | |
public void setViewName(String viewName) { |
23 | 0 | this.viewName = viewName; |
24 | 0 | } |
25 | |
|
26 | |
public String getSectionName() { |
27 | 0 | return sectionName; |
28 | |
} |
29 | |
|
30 | |
public void setSectionName(String sectionName) { |
31 | 0 | this.sectionName = sectionName; |
32 | 0 | } |
33 | |
|
34 | |
public String getFieldLabel() { |
35 | 0 | return fieldLabel; |
36 | |
} |
37 | |
|
38 | |
public void setFieldLabel(String fieldLabel) { |
39 | 0 | this.fieldLabel = fieldLabel; |
40 | 0 | } |
41 | |
|
42 | |
public String getFieldValue() { |
43 | 0 | if (fieldValue != null) { |
44 | 0 | return fieldValue; |
45 | |
} |
46 | 0 | return ""; |
47 | |
} |
48 | |
|
49 | |
public void setFieldValue(String fieldValue) { |
50 | 0 | this.fieldValue = fieldValue; |
51 | 0 | } |
52 | |
|
53 | |
public String getKey() { |
54 | 0 | return fieldLabel; |
55 | |
} |
56 | |
|
57 | |
public boolean isSub() { |
58 | 0 | return subset != null; |
59 | |
} |
60 | |
|
61 | |
public List<ExportElement> getSubset() { |
62 | 0 | return subset; |
63 | |
} |
64 | |
|
65 | |
public void setSubset(List<ExportElement> subset) { |
66 | 0 | if (subset != null && subset.size() > 0) { |
67 | 0 | this.subset = subset; |
68 | |
} |
69 | 0 | } |
70 | |
|
71 | |
public boolean isMandatory() { |
72 | 0 | return isMandatory; |
73 | |
} |
74 | |
|
75 | |
public void setMandatory(boolean isMandatory) { |
76 | 0 | this.isMandatory = isMandatory; |
77 | 0 | } |
78 | |
|
79 | |
public String getFieldValue2() { |
80 | 0 | if (fieldValue2 != null) { |
81 | 0 | return fieldValue2; |
82 | |
} |
83 | 0 | return ""; |
84 | |
} |
85 | |
|
86 | |
public void setFieldValue2(String fieldValue2) { |
87 | 0 | this.fieldValue2 = fieldValue2; |
88 | 0 | } |
89 | |
|
90 | |
public String getValue() { |
91 | 0 | return this.getFieldValue(); |
92 | |
} |
93 | |
|
94 | |
public String getProposalValue() { |
95 | 0 | return this.getFieldValue(); |
96 | |
} |
97 | |
|
98 | |
public String getOriginalValue() { |
99 | 0 | return this.getFieldValue2(); |
100 | |
} |
101 | |
|
102 | |
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 | |
} |