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.List; |
20 |
|
|
21 |
|
import javax.xml.bind.annotation.XmlAccessType; |
22 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
23 |
|
import javax.xml.bind.annotation.XmlTransient; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@author |
28 |
|
|
29 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
| 42.1% |
Uncovered Elements: 66 (114) |
Complexity: 39 |
Complexity Density: 0.56 |
|
30 |
|
public class ConstraintMetadata implements Serializable { |
31 |
|
|
32 |
|
private static final long serialVersionUID = 1L; |
33 |
|
|
34 |
|
@XmlTransient |
35 |
|
private List<ConstraintMetadata> childConstraints; |
36 |
|
|
37 |
|
private String comments; |
38 |
|
|
39 |
|
private String desc; |
40 |
|
|
41 |
|
private String id; |
42 |
|
|
43 |
|
private Integer maxLength; |
44 |
|
|
45 |
|
private Integer maxOccurs; |
46 |
|
|
47 |
|
private String maxValue; |
48 |
|
|
49 |
|
private Integer minLength; |
50 |
|
|
51 |
|
protected Integer minOccurs; |
52 |
|
|
53 |
|
private String minValue; |
54 |
|
|
55 |
|
private boolean serverSide; |
56 |
|
|
57 |
|
protected String specialValidator; |
58 |
|
|
59 |
|
private String validChars; |
60 |
|
|
61 |
|
private String validCharsMessageId; |
62 |
|
|
63 |
|
private boolean requiredForNextState = false; |
64 |
|
|
65 |
|
private String nextState; |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0
|
public List<ConstraintMetadata> getChildConstraints() {... |
68 |
0
|
return childConstraints; |
69 |
|
} |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public void setChildConstraints(List<ConstraintMetadata> childConstraints) {... |
72 |
0
|
this.childConstraints = childConstraints; |
73 |
|
} |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0
|
public String getComments() {... |
76 |
0
|
return comments; |
77 |
|
} |
78 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
32
|
public void setComments(String comments) {... |
80 |
32
|
this.comments = comments; |
81 |
|
} |
82 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
0
|
public String getDesc() {... |
84 |
0
|
return desc; |
85 |
|
} |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
63
|
public void setDesc(String desc) {... |
88 |
63
|
this.desc = desc; |
89 |
|
} |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
1781
|
public String getId() {... |
92 |
1781
|
return id; |
93 |
|
} |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
165
|
public void setId(String id) {... |
96 |
165
|
this.id = id; |
97 |
|
} |
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
150
|
public Integer getMaxLength() {... |
100 |
150
|
return maxLength; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
526
|
public void setMaxLength(Integer maxLength) {... |
104 |
526
|
this.maxLength = maxLength; |
105 |
|
} |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
37
|
public Integer getMaxOccurs() {... |
108 |
37
|
return maxOccurs; |
109 |
|
} |
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
665
|
public void setMaxOccurs(Integer maxOccurs) {... |
112 |
665
|
this.maxOccurs = maxOccurs; |
113 |
|
} |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
0
|
public String getMaxValue() {... |
116 |
0
|
return maxValue; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
13
|
public void setMaxValue(String maxValue) {... |
120 |
13
|
this.maxValue = maxValue; |
121 |
|
} |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
194
|
public Integer getMinLength() {... |
124 |
194
|
return minLength; |
125 |
|
} |
126 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
127 |
384
|
public void setMinLength(Integer minLength) {... |
128 |
384
|
this.minLength = minLength; |
129 |
|
} |
130 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
56
|
public Integer getMinOccurs() {... |
132 |
56
|
return minOccurs; |
133 |
|
} |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
218
|
public void setMinOccurs(Integer minOccurs) {... |
136 |
218
|
this.minOccurs = minOccurs; |
137 |
|
} |
138 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
139 |
0
|
public String getMinValue() {... |
140 |
0
|
return minValue; |
141 |
|
} |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
28
|
public void setMinValue(String minValue) {... |
144 |
28
|
this.minValue = minValue; |
145 |
|
} |
146 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
147 |
264
|
public boolean isServerSide() {... |
148 |
264
|
return serverSide; |
149 |
|
} |
150 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
151 |
71
|
public void setServerSide(boolean serverSide) {... |
152 |
71
|
this.serverSide = serverSide; |
153 |
|
} |
154 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
155 |
0
|
public String getSpecialValidator() {... |
156 |
0
|
return specialValidator; |
157 |
|
} |
158 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
159 |
20
|
public void setSpecialValidator(String specialValidator) {... |
160 |
20
|
this.specialValidator = specialValidator; |
161 |
|
} |
162 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
163 |
37
|
public String getValidChars() {... |
164 |
37
|
return validChars; |
165 |
|
} |
166 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
167 |
256
|
public void setValidChars(String validChars) {... |
168 |
256
|
this.validChars = validChars; |
169 |
|
} |
170 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
171 |
0
|
public String getValidCharsMessageId() {... |
172 |
0
|
return validCharsMessageId; |
173 |
|
} |
174 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
175 |
234
|
public void setValidCharsMessageId(String validCharsMessageId) {... |
176 |
234
|
this.validCharsMessageId = validCharsMessageId; |
177 |
|
} |
178 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
179 |
5
|
public boolean isRequiredForNextState() {... |
180 |
5
|
return requiredForNextState; |
181 |
|
} |
182 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
183 |
80
|
public void setRequiredForNextState(boolean requiredForNextState) {... |
184 |
80
|
this.requiredForNextState = requiredForNextState; |
185 |
|
} |
186 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
187 |
5
|
public String getNextState() {... |
188 |
5
|
return nextState; |
189 |
|
} |
190 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
191 |
80
|
public void setNextState(String nextState) {... |
192 |
80
|
this.nextState = nextState; |
193 |
|
} |
194 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
195 |
0
|
@Override... |
196 |
|
public String toString() { |
197 |
0
|
StringBuilder sb = new StringBuilder(); |
198 |
0
|
_toString(sb); |
199 |
0
|
return sb.toString(); |
200 |
|
} |
201 |
|
|
|
|
| 0% |
Uncovered Elements: 45 (45) |
Complexity: 6 |
Complexity Density: 0.17 |
|
202 |
0
|
protected void _toString(StringBuilder sb) {... |
203 |
0
|
sb.append("comments: "); |
204 |
0
|
sb.append(comments); |
205 |
0
|
sb.append(", desc: "); |
206 |
0
|
sb.append(desc); |
207 |
0
|
sb.append(", id: "); |
208 |
0
|
sb.append(id); |
209 |
0
|
sb.append(", maxLength: "); |
210 |
0
|
sb.append(null != maxLength ? maxLength.toString() : "null"); |
211 |
0
|
sb.append(", maxOccurs: "); |
212 |
0
|
sb.append(null != maxOccurs ? maxOccurs.toString() : "null"); |
213 |
0
|
sb.append(", maxValue: "); |
214 |
0
|
sb.append(maxValue); |
215 |
0
|
sb.append(", minLength: "); |
216 |
0
|
sb.append(null != minLength ? minLength.toString() : "null"); |
217 |
0
|
sb.append(", minOccurs: "); |
218 |
0
|
sb.append(null != minOccurs ? minOccurs.toString() : "null"); |
219 |
0
|
sb.append(", minValue: "); |
220 |
0
|
sb.append(minValue); |
221 |
0
|
sb.append(", serverSide: "); |
222 |
0
|
sb.append(Boolean.toString(serverSide)); |
223 |
0
|
sb.append(", specialValidator: "); |
224 |
0
|
sb.append(specialValidator); |
225 |
0
|
sb.append(", validCharsMessageId: "); |
226 |
0
|
sb.append(validCharsMessageId); |
227 |
0
|
sb.append(", validChars: "); |
228 |
0
|
sb.append(validChars); |
229 |
0
|
sb.append(", requiredForNextState: "); |
230 |
0
|
sb.append(Boolean.toString(requiredForNextState)); |
231 |
0
|
sb.append(", nextState: "); |
232 |
0
|
sb.append(nextState); |
233 |
0
|
sb.append(", ChildConstraints: {"); |
234 |
0
|
if (null != childConstraints) { |
235 |
0
|
for (ConstraintMetadata constraint : childConstraints) { |
236 |
0
|
constraint._toString(sb); |
237 |
|
} |
238 |
|
} |
239 |
0
|
sb.append("}"); |
240 |
|
} |
241 |
|
} |