View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.r1.common.dictionary.old.dto;
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.XmlAttribute;
24  import javax.xml.bind.annotation.XmlElement;
25  
26  
27  
28  
29  @Deprecated
30  @XmlAccessorType(XmlAccessType.FIELD)
31  public class ConstraintSelector implements Serializable {
32  
33      private static final long serialVersionUID = 1L;
34  
35      @XmlAttribute
36      protected String className;
37      
38      @XmlAttribute(required = true) 
39      protected String key;
40      
41      @XmlAttribute
42      protected String id;
43      
44      @XmlAttribute
45      protected boolean serverSide;
46      
47      @XmlAttribute
48      protected String locale;
49      
50      @XmlElement
51      protected String minValue;
52  
53      @XmlElement
54      protected String maxValue;
55  
56      @XmlElement
57      protected Integer minLength;
58      
59      @XmlElement
60      protected String maxLength;
61      
62      @XmlElement(name="validChars")
63      protected ValidCharsConstraint validChars;
64      
65      @XmlElement
66      protected Integer minOccurs;
67      
68      @XmlElement
69      protected String maxOccurs;
70  
71      @XmlElement(name="require")
72      protected List<RequireConstraint> requireConstraint;
73      
74      @XmlElement(name = "case")
75      protected List<CaseConstraint> caseConstraint;
76  
77      @XmlElement(name = "typeStateCase")
78      protected TypeStateCaseConstraint typeStateCaseConstraint;
79          
80      @XmlElement(name = "lookup")
81      protected List<LookupConstraint> lookupConstraint;
82  
83      @XmlElement(name = "occurs")
84      protected List<OccursConstraint> occursConstraint;
85      
86  	/**
87  	 * @return the minValue
88  	 */
89  	public String getMinValue() {
90  		return minValue;
91  	}
92  
93  	/**
94  	 * @param minValue the minValue to set
95  	 */
96  	public void setMinValue(String minValue) {
97  		this.minValue = minValue;
98  	}
99  
100 	/**
101 	 * @return the maxValue
102 	 */
103 	public String getMaxValue() {
104 		return maxValue;
105 	}
106 
107 	/**
108 	 * @param maxValue the maxValue to set
109 	 */
110 	public void setMaxValue(String maxValue) {
111 		this.maxValue = maxValue;
112 	}
113 
114 	/**
115 	 * @return the minLength
116 	 */
117 	public Integer getMinLength() {
118 		return minLength;
119 	}
120 
121 	/**
122 	 * @param minLength the minLength to set
123 	 */
124 	public void setMinLength(Integer minLength) {
125 		this.minLength = minLength;
126 	}
127 
128 	/**
129 	 * @return the maxLength
130 	 */
131 	public String getMaxLength() {
132 		return maxLength;
133 	}
134 
135 	/**
136 	 * @param maxLength the maxLength to set
137 	 */
138 	public void setMaxLength(String maxLength) {
139 		this.maxLength = maxLength;
140 	}
141 
142 	/**
143 	 * @return the minOccurs
144 	 */
145 	public Integer getMinOccurs() {
146 		return minOccurs;
147 	}
148 
149 	/**
150 	 * @param minOccurs the minOccurs to set
151 	 */
152 	public void setMinOccurs(Integer minOccurs) {
153 		this.minOccurs = minOccurs;
154 	}
155 
156 	/**
157 	 * @return the maxOccurs
158 	 */
159 	public String getMaxOccurs() {
160 		return maxOccurs;
161 	}
162 
163 	/**
164 	 * @param maxOccurs the maxOccurs to set
165 	 */
166 	public void setMaxOccurs(String maxOccurs) {
167 		this.maxOccurs = maxOccurs;
168 	}
169 
170 	/**
171 	 * @return the className
172 	 */
173 	public String getClassName() {
174 		return className;
175 	}
176 
177 	/**
178 	 * @param className the className to set
179 	 */
180 	public void setClassName(String className) {
181 		this.className = className;
182 	}
183 
184 	/**
185 	 * @return the key
186 	 */
187 	public String getKey() {
188 		return key;
189 	}
190 
191 	/**
192 	 * @param key the key to set
193 	 */
194 	public void setKey(String key) {
195 		this.key = key;
196 	}
197 
198 	/**
199 	 * @return the id
200 	 */
201 	public String getId() {
202 		return id;
203 	}
204 
205 	/**
206 	 * @param id the id to set
207 	 */
208 	public void setId(String id) {
209 		this.id = id;
210 	}
211 
212 	/**
213 	 * @return the serverSide
214 	 */
215 	public boolean isServerSide() {
216 		return serverSide;
217 	}
218 
219 	/**
220 	 * @param serverSide the serverSide to set
221 	 */
222 	public void setServerSide(boolean serverSide) {
223 		this.serverSide = serverSide;
224 	}
225 
226 	/**
227 	 * @return the locale
228 	 */
229 	public String getLocale() {
230 		return locale;
231 	}
232 
233 	/**
234 	 * @param locale the locale to set
235 	 */
236 	public void setLocale(String locale) {
237 		this.locale = locale;
238 	}
239 
240 	/**
241 	 * @return the validChars
242 	 */
243 	public ValidCharsConstraint getValidChars() {
244 		return validChars;
245 	}
246 
247 	/**
248 	 * @param validChars the validChars to set
249 	 */
250 	public void setValidChars(ValidCharsConstraint validChars) {
251 		this.validChars = validChars;
252 	}
253 
254 	/**
255 	 * @return the requireConstraint
256 	 */
257 	public List<RequireConstraint> getRequireConstraint() {
258 		return requireConstraint;
259 	}
260 
261 	/**
262 	 * @param requireConstraint the requireConstraint to set
263 	 */
264 	public void setRequireConstraint(List<RequireConstraint> requireConstraint) {
265 		this.requireConstraint = requireConstraint;
266 	}
267 
268 	/**
269 	 * @return the typeStateCaseConstraint
270 	 */
271 	public TypeStateCaseConstraint getTypeStateCaseConstraint() {
272 		return typeStateCaseConstraint;
273 	}
274 
275 	/**
276 	 * @param typeStateCaseConstraint the typeStateCaseConstraint to set
277 	 */
278 	public void setTypeStateCaseConstraint(
279 			TypeStateCaseConstraint typeStateCaseConstraint) {
280 		this.typeStateCaseConstraint = typeStateCaseConstraint;
281 	}
282 
283 	/**
284 	 * @return the caseConstraint
285 	 */
286 	public List<CaseConstraint> getCaseConstraint() {
287 		return caseConstraint;
288 	}
289 
290 	/**
291 	 * @param caseConstraint the caseConstraint to set
292 	 */
293 	public void setCaseConstraint(List<CaseConstraint> caseConstraint) {
294 		this.caseConstraint = caseConstraint;
295 	}
296 
297 	/**
298 	 * @return the lookupConstraint
299 	 */
300 	public List<LookupConstraint> getLookupConstraint() {
301 		return lookupConstraint;
302 	}
303 
304 	/**
305 	 * @param lookupConstraint the lookupConstraint to set
306 	 */
307 	public void setLookupConstraint(List<LookupConstraint> lookupConstraint) {
308 		this.lookupConstraint = lookupConstraint;
309 	}
310 
311 	/**
312 	 * @return the occursConstraint
313 	 */
314 	public List<OccursConstraint> getOccursConstraint() {
315 		return occursConstraint;
316 	}
317 
318 	/**
319 	 * @param occursConstraint the occursConstraint to set
320 	 */
321 	public void setOccursConstraint(List<OccursConstraint> occursConstraint) {
322 		this.occursConstraint = occursConstraint;
323 	}	
324 }