1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.assembly.data; |
17 |
|
|
18 |
|
import java.io.Serializable; |
19 |
|
import java.util.ArrayList; |
20 |
|
|
21 |
|
import org.kuali.student.common.assembly.data.LookupMetadata.Usage; |
22 |
|
import org.kuali.student.common.assembly.data.Metadata.WriteAccess; |
23 |
|
|
24 |
|
|
|
|
| 60.7% |
Uncovered Elements: 22 (56) |
Complexity: 28 |
Complexity Density: 1.04 |
|
25 |
|
public class LookupParamMetadata implements Serializable { |
26 |
|
|
27 |
|
private static final long serialVersionUID = 1L; |
28 |
|
|
29 |
|
private String key; |
30 |
|
private LookupMetadata childLookup; |
31 |
|
private Metadata.WriteAccess writeAccess; |
32 |
|
private Data.DataType dataType; |
33 |
|
private boolean optional; |
34 |
|
|
35 |
|
private ArrayList<String> defaultValueList; |
36 |
|
private String defaultValueString; |
37 |
|
private String fieldPath; |
38 |
|
|
39 |
|
private String name; |
40 |
|
private String desc; |
41 |
|
private boolean caseSensitive; |
42 |
|
private Usage usage; |
43 |
|
|
44 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
45 |
|
public enum Widget { |
46 |
|
SUGGEST_BOX, DROPDOWN_LIST, RADIO_BUTTONS, CHECK_BOXES, TEXT_BOX, CALENDAR, PICKER |
47 |
|
} |
48 |
|
|
49 |
|
private Widget widget; |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
public LookupMetadata getChildLookup() {... |
52 |
0
|
return childLookup; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0
|
public void setChildLookup(LookupMetadata childLookup) {... |
56 |
0
|
this.childLookup = childLookup; |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
public Usage getUsage() {... |
60 |
0
|
return usage; |
61 |
|
} |
62 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
44
|
public void setUsage(Usage usage) {... |
64 |
44
|
this.usage = usage; |
65 |
|
} |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0
|
public Widget getWidget() {... |
68 |
0
|
return widget; |
69 |
|
} |
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
31
|
public void setWidget(Widget widget) {... |
72 |
31
|
this.widget = widget; |
73 |
|
} |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0
|
public String getKey() {... |
76 |
0
|
return key; |
77 |
|
} |
78 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
122
|
public void setKey(String key) {... |
80 |
122
|
this.key = key; |
81 |
|
} |
82 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
0
|
public boolean isOptional() {... |
84 |
0
|
return optional; |
85 |
|
} |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
122
|
public void setOptional(boolean optional) {... |
88 |
122
|
this.optional = optional; |
89 |
|
} |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
2
|
public Data.DataType getDataType() {... |
92 |
2
|
return dataType; |
93 |
|
} |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
115
|
public void setDataType(Data.DataType dataType) {... |
96 |
115
|
this.dataType = dataType; |
97 |
|
} |
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
18
|
public WriteAccess getWriteAccess() {... |
100 |
18
|
return writeAccess; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
110
|
public void setWriteAccess(WriteAccess writeAccess) {... |
104 |
110
|
this.writeAccess = writeAccess; |
105 |
|
} |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
2
|
public String getName() {... |
108 |
2
|
return name; |
109 |
|
} |
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
122
|
public void setName(String name) {... |
112 |
122
|
this.name = name; |
113 |
|
} |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
0
|
public String getDesc() {... |
116 |
0
|
return desc; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
122
|
public void setDesc(String desc) {... |
120 |
122
|
this.desc = desc; |
121 |
|
} |
122 |
|
|
123 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
0
|
public boolean isCaseSensitive() {... |
125 |
0
|
return caseSensitive; |
126 |
|
} |
127 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
122
|
public void setCaseSensitive(boolean caseSensitive) {... |
129 |
122
|
this.caseSensitive = caseSensitive; |
130 |
|
} |
131 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
132 |
0
|
@Override... |
133 |
|
public String toString() { |
134 |
0
|
return "LookupParamMetadata[key=" + key + ", name=" + name |
135 |
|
+ ", caseSensitive=" + caseSensitive + ", childLookup=" |
136 |
|
+ childLookup + ", dataType=" + dataType + ", defaultValue=" |
137 |
|
+ defaultValueList==null?defaultValueString:defaultValueList.toString() + ", optional=" + optional + ", usage=" + usage |
138 |
|
+ ", widget=" + widget + ", writeAccess=" + writeAccess + "]"; |
139 |
|
} |
140 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
10
|
public ArrayList<String> getDefaultValueList() {... |
142 |
10
|
return defaultValueList; |
143 |
|
} |
144 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
145 |
93
|
public void setDefaultValueList(ArrayList<String> defaultValueList) {... |
146 |
93
|
this.defaultValueList = defaultValueList; |
147 |
|
} |
148 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
149 |
14
|
public String getDefaultValueString() {... |
150 |
14
|
return defaultValueString; |
151 |
|
} |
152 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
153 |
93
|
public void setDefaultValueString(String defaultValueString) {... |
154 |
93
|
this.defaultValueString = defaultValueString; |
155 |
|
} |
156 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
157 |
0
|
public String getFieldPath() {... |
158 |
0
|
return fieldPath; |
159 |
|
} |
160 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
161 |
93
|
public void setFieldPath(String fieldPath) {... |
162 |
93
|
this.fieldPath = fieldPath; |
163 |
|
} |
164 |
|
} |