001/**
002 * Copyright 2004-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.student.contract.model;
017
018/**
019 * This models a constraint either an in-line one or one defined as part of the bank of constraints.
020 * Note: Cross-object Constraints are not modeled here.
021 *
022 * @author nwright
023 */
024public class Constraint {
025
026    public static final String UNBOUNDED = "(unbounded)";
027    public static final String NINE_NINES = "999999999";
028
029    public Constraint() {
030        super();
031    }
032    private String id;
033
034    /**
035     * Get the value of id
036     *
037     * @return the value of id
038     */
039    public String getId() {
040        return id;
041    }
042
043    /**
044     * Set the value of id
045     *
046     * @param id new value of id
047     */
048    public void setId(String id) {
049        this.id = id;
050    }
051    private String key;
052
053    /**
054     * Get the value of key
055     *
056     * @return the value of key
057     */
058    public String getKey() {
059        return key;
060    }
061
062    /**
063     * Set the value of key
064     *
065     * @param key new value of key
066     */
067    public void setKey(String key) {
068        this.key = key;
069    }
070    private String desc;
071
072    /**
073     * Get the value of desc
074     *
075     * @return the value of desc
076     */
077    public String getDesc() {
078        return desc;
079    }
080
081    /**
082     * Set the value of desc
083     *
084     * @param desc new value of desc
085     */
086    public void setDesc(String desc) {
087        this.desc = desc;
088    }
089    private String serverSide;
090
091    /**
092     * Get the value of serverSide
093     *
094     * @return the value of serverSide
095     */
096    public String getServerSide() {
097        return serverSide;
098    }
099
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}