Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Field |
|
| 1.0;1 |
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 | * This models a single field definition in the spreadsheet | |
23 | * @author nwright | |
24 | */ | |
25 | public class Field implements Serializable | |
26 | { | |
27 | ||
28 | public Field () | |
29 | 0 | { |
30 | 0 | } |
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 | { | |
41 | 0 | return id; |
42 | } | |
43 | ||
44 | /** | |
45 | * Set the value of id | |
46 | * | |
47 | * @param id new value of id | |
48 | */ | |
49 | public void setId (String id) | |
50 | { | |
51 | 0 | this.id = id; |
52 | 0 | } |
53 | ||
54 | private String xmlObject; | |
55 | ||
56 | /** | |
57 | * Get the value of xmlObject | |
58 | * | |
59 | * @return the value of xmlObject | |
60 | */ | |
61 | public String getXmlObject () | |
62 | { | |
63 | 0 | return xmlObject; |
64 | } | |
65 | ||
66 | /** | |
67 | * Set the value of xmlObject | |
68 | * | |
69 | * @param xmlObject new value of xmlObject | |
70 | */ | |
71 | public void setXmlObject (String xmlObject) | |
72 | { | |
73 | 0 | this.xmlObject = xmlObject; |
74 | 0 | } |
75 | ||
76 | private String shortName; | |
77 | ||
78 | /** | |
79 | * Get the value of shortName | |
80 | * | |
81 | * @return the value of shortName | |
82 | */ | |
83 | public String getShortName () | |
84 | { | |
85 | 0 | return shortName; |
86 | } | |
87 | ||
88 | /** | |
89 | * Set the value of shortName | |
90 | * | |
91 | * @param shortName new value of shortName | |
92 | */ | |
93 | public void setShortName (String shortName) | |
94 | { | |
95 | 0 | this.shortName = shortName; |
96 | 0 | } |
97 | ||
98 | private String name; | |
99 | ||
100 | /** | |
101 | * Get the value of name | |
102 | * | |
103 | * @return the value of name | |
104 | */ | |
105 | public String getName () | |
106 | { | |
107 | 0 | return name; |
108 | } | |
109 | ||
110 | /** | |
111 | * Set the value of name | |
112 | * | |
113 | * @param name new value of name | |
114 | */ | |
115 | public void setName (String name) | |
116 | { | |
117 | 0 | this.name = name; |
118 | 0 | } |
119 | ||
120 | private String xmlType; | |
121 | ||
122 | /** | |
123 | * Get the value of xmlType | |
124 | * | |
125 | * @return the value of xmlType | |
126 | */ | |
127 | public String getXmlType () | |
128 | { | |
129 | 0 | return xmlType; |
130 | } | |
131 | ||
132 | /** | |
133 | * Set the value of xmlType | |
134 | * | |
135 | * @param xmlType new value of xmlType | |
136 | */ | |
137 | public void setXmlType (String xmlType) | |
138 | { | |
139 | 0 | this.xmlType = xmlType; |
140 | 0 | } |
141 | ||
142 | private String primitive; | |
143 | ||
144 | /** | |
145 | * Get the value of primitive | |
146 | * | |
147 | * @return the value of primitive | |
148 | */ | |
149 | public String getPrimitive () | |
150 | { | |
151 | 0 | return primitive; |
152 | } | |
153 | ||
154 | /** | |
155 | * Set the value of primitive | |
156 | * | |
157 | * @param primitive new value of primitive | |
158 | */ | |
159 | public void setPrimitive (String primitive) | |
160 | { | |
161 | 0 | this.primitive = primitive; |
162 | 0 | } |
163 | ||
164 | ||
165 | ||
166 | private String desc; | |
167 | ||
168 | /** | |
169 | * Get the value of desc | |
170 | * | |
171 | * @return the value of desc | |
172 | */ | |
173 | public String getDesc () | |
174 | { | |
175 | 0 | return desc; |
176 | } | |
177 | ||
178 | /** | |
179 | * Set the value of desc | |
180 | * | |
181 | * @param desc new value of desc | |
182 | */ | |
183 | public void setDesc (String desc) | |
184 | { | |
185 | 0 | this.desc = desc; |
186 | 0 | } |
187 | ||
188 | private List<String> constraintIds; | |
189 | ||
190 | /** | |
191 | * Get the value of constraintIds | |
192 | * | |
193 | * @return the value of constraintIds | |
194 | */ | |
195 | public List<String> getConstraintIds () | |
196 | { | |
197 | 0 | return constraintIds; |
198 | } | |
199 | ||
200 | /** | |
201 | * Set the value of constraintIds | |
202 | * | |
203 | * @param constraintIds new value of constraintIds | |
204 | */ | |
205 | public void setConstraintIds (List<String> constraintIds) | |
206 | { | |
207 | 0 | this.constraintIds = constraintIds; |
208 | 0 | } |
209 | ||
210 | private String constraintDescription; | |
211 | ||
212 | /** | |
213 | * Get the value of constraintDescription | |
214 | * | |
215 | * @return the value of constraintDescription | |
216 | */ | |
217 | public String getConstraintDescription () | |
218 | { | |
219 | 0 | return constraintDescription; |
220 | } | |
221 | ||
222 | /** | |
223 | * Set the value of constraintDescription | |
224 | * | |
225 | * @param constraintDescription new value of constraintDescription | |
226 | */ | |
227 | public void setConstraintDescription (String constraintDescription) | |
228 | { | |
229 | 0 | this.constraintDescription = constraintDescription; |
230 | 0 | } |
231 | ||
232 | ||
233 | private boolean dynamic; | |
234 | ||
235 | /** | |
236 | * Get the value of dynamic | |
237 | * | |
238 | * @return the value of dynamic | |
239 | */ | |
240 | public boolean isDynamic () | |
241 | { | |
242 | 0 | return dynamic; |
243 | } | |
244 | ||
245 | /** | |
246 | * Set the value of dynamic | |
247 | * | |
248 | * @param dynamic new value of dynamic | |
249 | */ | |
250 | public void setDynamic (boolean dynamic) | |
251 | { | |
252 | 0 | this.dynamic = dynamic; |
253 | 0 | } |
254 | ||
255 | private boolean selector; | |
256 | ||
257 | /** | |
258 | * Get the value of selector | |
259 | * | |
260 | * @return the value of selector | |
261 | */ | |
262 | public boolean isSelector () | |
263 | { | |
264 | 0 | return selector; |
265 | } | |
266 | ||
267 | /** | |
268 | * Set the value of selector | |
269 | * | |
270 | * @param selector new value of selector | |
271 | */ | |
272 | public void setSelector (boolean selector) | |
273 | { | |
274 | 0 | this.selector = selector; |
275 | 0 | } |
276 | ||
277 | private Constraint inlineConstraint; | |
278 | ||
279 | /** | |
280 | * Get the value of inlineConstraint | |
281 | * | |
282 | * @return the value of inlineConstraint | |
283 | */ | |
284 | public Constraint getInlineConstraint () | |
285 | { | |
286 | 0 | return inlineConstraint; |
287 | } | |
288 | ||
289 | /** | |
290 | * Set the value of inlineConstraint | |
291 | * | |
292 | * @param inlineConstraint new value of inlineConstraint | |
293 | */ | |
294 | public void setInlineConstraint (Constraint inlineConstraint) | |
295 | { | |
296 | 0 | this.inlineConstraint = inlineConstraint; |
297 | 0 | } |
298 | ||
299 | private String comments; | |
300 | ||
301 | /** | |
302 | * Get the value of comments | |
303 | * | |
304 | * @return the value of comments | |
305 | */ | |
306 | public String getComments () | |
307 | { | |
308 | 0 | return comments; |
309 | } | |
310 | ||
311 | /** | |
312 | * Set the value of comments | |
313 | * | |
314 | * @param comments new value of comments | |
315 | */ | |
316 | public void setComments (String comments) | |
317 | { | |
318 | 0 | this.comments = comments; |
319 | 0 | } |
320 | ||
321 | } |