1 |
|
package org.kuali.student.common.dictionary.dto; |
2 |
|
|
3 |
|
import java.util.ArrayList; |
4 |
|
import java.util.List; |
5 |
|
|
6 |
|
import javax.xml.bind.annotation.XmlAccessType; |
7 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
8 |
|
import javax.xml.bind.annotation.XmlElement; |
9 |
|
|
10 |
|
import org.kuali.student.common.validation.dto.ValidationResultInfo.ErrorLevel; |
11 |
|
|
12 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
| 77.8% |
Uncovered Elements: 16 (72) |
Complexity: 34 |
Complexity Density: 0.94 |
|
13 |
|
public class Constraint extends BaseConstraint { |
14 |
|
public static final String UNBOUNDED = "unbounded"; |
15 |
|
public static final String SINGLE = "1"; |
16 |
|
|
17 |
|
@XmlElement |
18 |
|
protected boolean serverSide; |
19 |
|
@XmlElement |
20 |
|
protected String customValidatorClass; |
21 |
|
@XmlElement |
22 |
|
protected String locale; |
23 |
|
@XmlElement |
24 |
|
protected String exclusiveMin; |
25 |
|
@XmlElement |
26 |
|
protected String inclusiveMax; |
27 |
|
@XmlElement |
28 |
|
protected Integer minLength; |
29 |
|
@XmlElement |
30 |
|
protected String maxLength; |
31 |
|
@XmlElement |
32 |
|
protected ValidCharsConstraint validChars; |
33 |
|
@XmlElement |
34 |
|
protected Integer minOccurs; |
35 |
|
@XmlElement |
36 |
|
protected String maxOccurs; |
37 |
|
@XmlElement |
38 |
|
protected ErrorLevel errorLevel = ErrorLevel.ERROR; |
39 |
|
|
40 |
|
@XmlElement |
41 |
|
protected CaseConstraint caseConstraint; |
42 |
|
|
43 |
|
@XmlElement |
44 |
|
protected List<RequiredConstraint> requireConstraint; |
45 |
|
|
46 |
|
@XmlElement |
47 |
|
protected List<MustOccurConstraint> occursConstraint; |
48 |
|
|
49 |
|
|
50 |
|
protected LookupConstraint lookupDefinition; |
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
protected String lookupContextPath; |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
83
|
public boolean isServerSide() {... |
60 |
83
|
return serverSide; |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
public void setServerSide(boolean serverSide) {... |
64 |
0
|
this.serverSide = serverSide; |
65 |
|
} |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0
|
public String getLocale() {... |
68 |
0
|
return locale; |
69 |
|
} |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public void setLocale(String locale) {... |
72 |
0
|
this.locale = locale; |
73 |
|
} |
74 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
139
|
public String getExclusiveMin() {... |
76 |
139
|
return exclusiveMin; |
77 |
|
} |
78 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
26
|
public void setExclusiveMin(String exclusiveMin) {... |
80 |
26
|
this.exclusiveMin = exclusiveMin; |
81 |
|
} |
82 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
128
|
public String getInclusiveMax() {... |
84 |
128
|
return inclusiveMax; |
85 |
|
} |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
13
|
public void setInclusiveMax(String inclusiveMax) {... |
88 |
13
|
this.inclusiveMax = inclusiveMax; |
89 |
|
} |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
290
|
public Integer getMinLength() {... |
92 |
290
|
return minLength; |
93 |
|
} |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
131
|
public void setMinLength(Integer minLength) {... |
96 |
131
|
this.minLength = minLength; |
97 |
|
} |
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
211
|
public String getMaxLength() {... |
100 |
211
|
return maxLength; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
131
|
public void setMaxLength(String maxLength) {... |
104 |
131
|
this.maxLength = maxLength; |
105 |
|
} |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
224
|
public ValidCharsConstraint getValidChars() {... |
108 |
224
|
return validChars; |
109 |
|
} |
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
39
|
public void setValidChars(ValidCharsConstraint validChars) {... |
112 |
39
|
this.validChars = validChars; |
113 |
|
} |
114 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
270
|
public Integer getMinOccurs() {... |
116 |
270
|
return minOccurs; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
195
|
public void setMinOccurs(Integer minOccurs) {... |
120 |
195
|
this.minOccurs = minOccurs; |
121 |
|
} |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
272
|
public String getMaxOccurs() {... |
124 |
272
|
return maxOccurs; |
125 |
|
} |
126 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
127 |
52
|
public void setMaxOccurs(String maxOccurs) {... |
128 |
52
|
this.maxOccurs = maxOccurs; |
129 |
|
} |
130 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
131 |
103
|
public List<RequiredConstraint> getRequireConstraint() {... |
132 |
103
|
if(null == requireConstraint) { |
133 |
24
|
this.requireConstraint = new ArrayList<RequiredConstraint>(); |
134 |
|
} |
135 |
|
|
136 |
103
|
return requireConstraint; |
137 |
|
} |
138 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
139 |
13
|
public void setRequireConstraint(List<RequiredConstraint> requireConstraint) {... |
140 |
13
|
this.requireConstraint = requireConstraint; |
141 |
|
} |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
222
|
public CaseConstraint getCaseConstraint() {... |
144 |
222
|
return caseConstraint; |
145 |
|
} |
146 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
147 |
78
|
public void setCaseConstraint(CaseConstraint caseConstraint) {... |
148 |
78
|
this.caseConstraint = caseConstraint; |
149 |
|
} |
150 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
151 |
98
|
public List<MustOccurConstraint> getOccursConstraint() {... |
152 |
98
|
if(null == occursConstraint) { |
153 |
26
|
this.occursConstraint = new ArrayList<MustOccurConstraint>(); |
154 |
|
} |
155 |
98
|
return occursConstraint; |
156 |
|
} |
157 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
158 |
0
|
public void setOccursConstraint(List<MustOccurConstraint> occursConstraint) {... |
159 |
0
|
this.occursConstraint = occursConstraint; |
160 |
|
} |
161 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
162 |
53
|
public LookupConstraint getLookupDefinition() {... |
163 |
53
|
return lookupDefinition; |
164 |
|
} |
165 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
166 |
13
|
public void setLookupDefinition(LookupConstraint lookupDefinition) {... |
167 |
13
|
this.lookupDefinition = lookupDefinition; |
168 |
|
} |
169 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
170 |
0
|
public String getLookupContextPath() {... |
171 |
0
|
return lookupContextPath; |
172 |
|
} |
173 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
174 |
0
|
public void setLookupContextPath(String lookupContextPath) {... |
175 |
0
|
this.lookupContextPath = lookupContextPath; |
176 |
|
} |
177 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
178 |
83
|
public String getCustomValidatorClass() {... |
179 |
83
|
return customValidatorClass; |
180 |
|
} |
181 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
182 |
0
|
public void setCustomValidatorClass(String customValidatorClass) {... |
183 |
0
|
this.customValidatorClass = customValidatorClass; |
184 |
|
} |
185 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
186 |
33
|
public ErrorLevel getErrorLevel() {... |
187 |
33
|
return errorLevel; |
188 |
|
} |
189 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
190 |
0
|
public void setErrorLevel(ErrorLevel errorLevel) {... |
191 |
0
|
this.errorLevel = errorLevel; |
192 |
|
} |
193 |
|
} |