1 /*
2 * Copyright 2009 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.osedu.org/licenses/ECL-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.student.contract.model;
17
18 /**
19 * This models a constraint either an in-line one or one defined as part of the bank of constraints.
20 * Note: Cross-object Constraints are not modeled here.
21 *
22 * @author nwright
23 */
24 public class Constraint {
25
26 public static final String UNBOUNDED = "(unbounded)";
27 public static final String NINE_NINES = "999999999";
28
29 public Constraint() {
30 super();
31 }
32 private String id;
33
34 /**
35 * Get the value of id
36 *
37 * @return the value of id
38 */
39 public String getId() {
40 return id;
41 }
42
43 /**
44 * Set the value of id
45 *
46 * @param id new value of id
47 */
48 public void setId(String id) {
49 this.id = id;
50 }
51 private String key;
52
53 /**
54 * Get the value of key
55 *
56 * @return the value of key
57 */
58 public String getKey() {
59 return key;
60 }
61
62 /**
63 * Set the value of key
64 *
65 * @param key new value of key
66 */
67 public void setKey(String key) {
68 this.key = key;
69 }
70 private String desc;
71
72 /**
73 * Get the value of desc
74 *
75 * @return the value of desc
76 */
77 public String getDesc() {
78 return desc;
79 }
80
81 /**
82 * Set the value of desc
83 *
84 * @param desc new value of desc
85 */
86 public void setDesc(String desc) {
87 this.desc = desc;
88 }
89 private String serverSide;
90
91 /**
92 * Get the value of serverSide
93 *
94 * @return the value of serverSide
95 */
96 public String getServerSide() {
97 return serverSide;
98 }
99
100 /**
101 * Set the value of serverSide
102 *
103 * @param serverSide new value of serverSide
104 */
105 public void setServerSide(String serverSide) {
106 this.serverSide = serverSide;
107 }
108 private String minLength;
109
110 /**
111 * Get the value of minLength
112 *
113 * @return the value of minLength
114 */
115 public String getMinLength() {
116 return minLength;
117 }
118
119 /**
120 * Set the value of minLength
121 *
122 * @param minLength new value of minLength
123 */
124 public void setMinLength(String minLength) {
125 this.minLength = minLength;
126 }
127 private String maxLength;
128
129 /**
130 * Get the value of maxLength
131 *
132 * @return the value of maxLength
133 */
134 public String getMaxLength() {
135 return maxLength;
136 }
137
138 /**
139 * Set the value of maxLength
140 *
141 * @param maxLength new value of maxLength
142 */
143 public void setMaxLength(String maxLength) {
144 this.maxLength = maxLength;
145 }
146 private String minValue;
147
148 /**
149 * Get the value of minValue
150 *
151 * @return the value of minValue
152 */
153 public String getMinValue() {
154 return minValue;
155 }
156
157 /**
158 * Set the value of minValue
159 *
160 * @param minValue new value of minValue
161 */
162 public void setMinValue(String minValue) {
163 this.minValue = minValue;
164 }
165 private String maxValue;
166
167 /**
168 * Get the value of maxValue
169 *
170 * @return the value of maxValue
171 */
172 public String getMaxValue() {
173 return maxValue;
174 }
175
176 /**
177 * Set the value of maxValue
178 *
179 * @param maxValue new value of maxValue
180 */
181 public void setMaxValue(String maxValue) {
182 this.maxValue = maxValue;
183 }
184 protected String minOccurs;
185
186 /**
187 * Get the value of minOccurs
188 *
189 * @return the value of minOccurs
190 */
191 public String getMinOccurs() {
192 return minOccurs;
193 }
194
195 /**
196 * Set the value of minOccurs
197 *
198 * @param minOccurs new value of minOccurs
199 */
200 public void setMinOccurs(String minOccurs) {
201 this.minOccurs = minOccurs;
202 }
203 private String maxOccurs;
204
205 /**
206 * Get the value of maxOccurs
207 *
208 * @return the value of maxOccurs
209 */
210 public String getMaxOccurs() {
211 return maxOccurs;
212 }
213
214 /**
215 * Set the value of maxOccurs
216 *
217 * @param maxOccurs new value of maxOccurs
218 */
219 public void setMaxOccurs(String maxOccurs) {
220 this.maxOccurs = maxOccurs;
221 }
222 private String validChars;
223
224 /**
225 * Get the value of validChars
226 *
227 * @return the value of validChars
228 */
229 public String getValidChars() {
230 return validChars;
231 }
232
233 /**
234 * Set the value of validChars
235 *
236 * @param validChars new value of validChars
237 */
238 public void setValidChars(String validChars) {
239 this.validChars = validChars;
240 }
241 private String lookup;
242
243 /**
244 * Get the value of lookup
245 *
246 * @return the value of lookup
247 */
248 public String getLookup() {
249 return lookup;
250 }
251
252 /**
253 * Set the value of lookup
254 *
255 * @param lookup new value of lookup
256 */
257 public void setLookup(String lookup) {
258 this.lookup = lookup;
259 }
260 protected String lookupContext;
261
262 /**
263 * Get the value of lookupContext
264 *
265 * @return the value of lookupContext
266 */
267 public String getLookupContext() {
268 return lookupContext;
269 }
270
271 /**
272 * Set the value of lookupContext
273 *
274 * @param lookupContext new value of lookupContext
275 */
276 public void setLookupContext(String lookupContext) {
277 this.lookupContext = lookupContext;
278 }
279 private String comments;
280
281 /**
282 * Get the value of comments
283 *
284 * @return the value of comments
285 */
286 public String getComments() {
287 return comments;
288 }
289
290 /**
291 * Set the value of comments
292 *
293 * @param comments new value of comments
294 */
295 public void setComments(String comments) {
296 this.comments = comments;
297 }
298 private String className;
299
300 /**
301 * Get the value of className
302 *
303 * @return the value of className
304 */
305 public String getClassName() {
306 return className;
307 }
308
309 /**
310 * Set the value of className
311 *
312 * @param className new value of className
313 */
314 public void setClassName(String className) {
315 this.className = className;
316 }
317 private String messageId;
318
319 public String getMessageId() {
320 return messageId;
321 }
322
323 public void setMessageId(String messageId) {
324 this.messageId = messageId;
325 }
326 private boolean inline;
327
328 public boolean isInline() {
329 return inline;
330 }
331
332 public void setInline(boolean inline) {
333 this.inline = inline;
334 }
335 }