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 import java.io.Serializable;
19 import java.util.List;
20
21 /**
22 * Models a single dictionary entry
23 * @author nwright
24 */
25 public class Dictionary implements Serializable, Cloneable {
26
27 public Dictionary() {
28 super();
29 }
30 private String id;
31
32 /**
33 * Get the value of id
34 *
35 * @return the value of id
36 */
37 public String getId() {
38 return id;
39 }
40
41 /**
42 * Set the value of id
43 *
44 * @param id new value of id
45 */
46 public void setId(String id) {
47 this.id = id;
48 }
49 private String type;
50
51 /**
52 * Get the value of type
53 *
54 * @return the value of type
55 */
56 public String getType() {
57 return type;
58 }
59
60 /**
61 * Set the value of type
62 *
63 * @param type new value of type
64 */
65 public void setType(String type) {
66 this.type = type;
67 }
68 private String state;
69
70 /**
71 * Get the value of state
72 *
73 * @return the value of state
74 */
75 public String getState() {
76 return state;
77 }
78
79 /**
80 * Set the value of state
81 *
82 * @param state new value of state
83 */
84 public void setState(String state) {
85 this.state = state;
86 }
87 private Dictionary parent;
88
89 public Dictionary getParent() {
90 return parent;
91 }
92
93 public void setParent(Dictionary parent) {
94 this.parent = parent;
95 }
96 private String subType;
97
98 /**
99 * Get the value of subType
100 *
101 * @return the value of subType
102 */
103 public String getSubType() {
104 return subType;
105 }
106
107 /**
108 * Set the value of subType
109 *
110 * @param subType new value of subType
111 */
112 public void setSubType(String subType) {
113 this.subType = subType;
114 }
115 private String subState;
116
117 /**
118 * Get the value of subState
119 *
120 * @return the value of subState
121 */
122 public String getSubState() {
123 return subState;
124 }
125
126 /**
127 * Set the value of subState
128 *
129 * @param subState new value of subState
130 */
131 public void setSubState(String subState) {
132 this.subState = subState;
133 }
134 private String xmlObject;
135
136 /**
137 * Get the value of xmlObject
138 *
139 * @return the value of xmlObject
140 */
141 public String getXmlObject() {
142 return xmlObject;
143 }
144
145 /**
146 * Set the value of xmlObject
147 *
148 * @param xmlObject new value of xmlObject
149 */
150 public void setXmlObject(String xmlObject) {
151 this.xmlObject = xmlObject;
152 }
153 private String shortName;
154
155 /**
156 * Get the value of shortName
157 *
158 * @return the value of shortName
159 */
160 public String getShortName() {
161 return shortName;
162 }
163
164 /**
165 * Set the value of shortName
166 *
167 * @param shortName new value of shortName
168 */
169 public void setShortName(String shortName) {
170 this.shortName = shortName;
171 }
172 private String primitive;
173
174 /**
175 * Get the value of primitive
176 *
177 * @return the value of primitive
178 */
179 public String getPrimitive() {
180 return primitive;
181 }
182
183 /**
184 * Set the value of primitive
185 *
186 * @param primitive new value of primitive
187 */
188 public void setPrimitive(String primitive) {
189 this.primitive = primitive;
190 }
191 private String baseConstraintDescription;
192
193 /**
194 * Get the value of baseConstraintDescription
195 *
196 * @return the value of baseConstraintDescription
197 */
198 public String getBaseConstraintDescription() {
199 return baseConstraintDescription;
200 }
201
202 /**
203 * Set the value of baseConstraintDescription
204 *
205 * @param baseConstraintDescription new value of baseConstraintDescription
206 */
207 public void setBaseConstraintDescription(String baseConstraintDescription) {
208 this.baseConstraintDescription = baseConstraintDescription;
209 }
210 private String name;
211
212 /**
213 * Get the value of name
214 *
215 * @return the value of name
216 */
217 public String getName() {
218 return name;
219 }
220
221 /**
222 * Set the value of name
223 *
224 * @param name new value of name
225 */
226 public void setName(String name) {
227 this.name = name;
228 }
229 public String desc;
230
231 /**
232 * Get the value of desc
233 *
234 * @return the value of desc
235 */
236 public String getDesc() {
237 return desc;
238 }
239
240 /**
241 * Set the value of desc
242 *
243 * @param desc new value of desc
244 */
245 public void setDesc(String desc) {
246 this.desc = desc;
247 }
248 private boolean selector;
249
250 /**
251 * Get the value of selector
252 *
253 * @return the value of selector
254 */
255 public boolean isSelector() {
256 return selector;
257 }
258
259 /**
260 * Set the value of selector
261 *
262 * @param selector new value of selector
263 */
264 public void setSelector(boolean selector) {
265 this.selector = selector;
266 }
267 private boolean dynamic;
268
269 public boolean isDynamic() {
270 return dynamic;
271 }
272
273 public void setDynamic(boolean dynamic) {
274 this.dynamic = dynamic;
275 }
276 private String comments;
277
278 /**
279 * Get the value of comments
280 *
281 * @return the value of comments
282 */
283 public String getComments() {
284 return comments;
285 }
286
287 /**
288 * Set the value of comments
289 *
290 * @param comments new value of comments
291 */
292 public void setComments(String comments) {
293 this.comments = comments;
294 }
295 protected List<String> additionalConstraintIds;
296
297 /**
298 * Get the value of additionalConstraintIds
299 *
300 * @return the value of additionalConstraintIds
301 */
302 public List<String> getAdditionalConstraintIds() {
303 return additionalConstraintIds;
304 }
305
306 /**
307 * Set the value of additionalConstraintIds
308 *
309 * @param additionalConstraintIds new value of additionalConstraintIds
310 */
311 public void setAdditionalConstraintIds(List<String> additionalConstraintIds) {
312 this.additionalConstraintIds = additionalConstraintIds;
313 }
314 protected String additionalConstraintDescription;
315
316 /**
317 * Get the value of additionalConstraintDescription
318 *
319 * @return the value of additionalConstraintDescription
320 */
321 public String getAdditionalConstraintDescription() {
322 return additionalConstraintDescription;
323 }
324
325 /**
326 * Set the value of additionalConstraintDescription
327 *
328 * @param additionalConstraintDescription new value of additionalConstraintDescription
329 */
330 public void setAdditionalConstraintDescription(
331 String additionalConstraintDescription) {
332 this.additionalConstraintDescription = additionalConstraintDescription;
333 }
334 protected String combinedConstraintDescription;
335
336 /**
337 * Get the value of combinedConstraintDescription
338 *
339 * @return the value of combinedConstraintDescription
340 */
341 public String getCombinedConstraintDescription() {
342 return combinedConstraintDescription;
343 }
344
345 /**
346 * Set the value of combinedConstraintDescription
347 *
348 * @param combinedConstraintDescription new value of combinedConstraintDescription
349 */
350 public void setCombinedConstraintDescription(
351 String combinedConstraintDescription) {
352 this.combinedConstraintDescription = combinedConstraintDescription;
353 }
354 private Constraint inlineConstraint;
355
356 /**
357 * Get the value of inlineConstraint
358 *
359 * @return the value of inlineConstraint
360 */
361 public Constraint getInlineConstraint() {
362 return inlineConstraint;
363 }
364
365 /**
366 * Set the value of inlineConstraint
367 *
368 * @param inlineConstraint new value of inlineConstraint
369 */
370 public void setInlineConstraint(Constraint inlineConstraint) {
371 this.inlineConstraint = inlineConstraint;
372 }
373
374 @Override
375 public Object clone()
376 throws CloneNotSupportedException {
377 return super.clone();
378 }
379 }