1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.academiccalendar.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.Date; |
20 | |
import java.util.List; |
21 | |
import org.w3c.dom.Element; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
|
29 | |
import org.kuali.student.common.infc.ModelBuilder; |
30 | |
import org.kuali.student.core.academiccalendar.infc.RegistrationDateGroup; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
@XmlAccessorType(XmlAccessType.FIELD) |
42 | |
@XmlType(name = "RegistrationDateGroupInfo", propOrder = {"termKey", "registrationStartDate", "registrationEndDate", "classStartDate", "classEndDate", "addDate", "dropDate", "finalExamStartDate", "finalExamEndDate", "gradingStartDate", "gradingEndDate", "_futureElements"}) |
43 | |
|
44 | |
public class RegistrationDateGroupInfo implements RegistrationDateGroup, Serializable { |
45 | |
|
46 | |
private static final long serialVersionUID = 1L; |
47 | |
|
48 | |
@XmlElement |
49 | |
private final String termKey; |
50 | |
|
51 | |
@XmlElement |
52 | |
private final Date registrationStartDate; |
53 | |
|
54 | |
@XmlElement |
55 | |
private final Date registrationEndDate; |
56 | |
|
57 | |
@XmlElement |
58 | |
private final Date classStartDate; |
59 | |
|
60 | |
@XmlElement |
61 | |
private final Date classEndDate; |
62 | |
|
63 | |
@XmlElement |
64 | |
private final Date addDate; |
65 | |
|
66 | |
@XmlElement |
67 | |
private final Date dropDate; |
68 | |
|
69 | |
@XmlElement |
70 | |
private final Date finalExamStartDate; |
71 | |
|
72 | |
@XmlElement |
73 | |
private final Date finalExamEndDate; |
74 | |
|
75 | |
@XmlElement |
76 | |
private final Date gradingStartDate; |
77 | |
|
78 | |
@XmlElement |
79 | |
private final Date gradingEndDate; |
80 | |
|
81 | |
@XmlAnyElement |
82 | |
private final List<Element> _futureElements; |
83 | |
|
84 | 0 | private RegistrationDateGroupInfo() { |
85 | 0 | termKey = null; |
86 | 0 | registrationStartDate = null; |
87 | 0 | registrationEndDate = null; |
88 | 0 | classStartDate = null; |
89 | 0 | classEndDate = null; |
90 | 0 | addDate = null; |
91 | 0 | dropDate = null; |
92 | 0 | finalExamStartDate = null; |
93 | 0 | finalExamEndDate = null; |
94 | 0 | gradingStartDate = null; |
95 | 0 | gradingEndDate = null; |
96 | 0 | _futureElements = null; |
97 | 0 | } |
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | 0 | public RegistrationDateGroupInfo(RegistrationDateGroup dateGroup) { |
106 | 0 | this.termKey = dateGroup.getTermKey(); |
107 | 0 | this.registrationStartDate = dateGroup.getRegistrationStartDate(); |
108 | 0 | this.registrationEndDate = dateGroup.getRegistrationEndDate(); |
109 | 0 | this.classStartDate = dateGroup.getClassStartDate(); |
110 | 0 | this.classEndDate = dateGroup.getClassEndDate(); |
111 | 0 | this.addDate = dateGroup.getAddDate(); |
112 | 0 | this.dropDate = dateGroup.getDropDate(); |
113 | 0 | this.finalExamStartDate = dateGroup.getFinalExamStartDate(); |
114 | 0 | this.finalExamEndDate = dateGroup.getFinalExamEndDate(); |
115 | 0 | this.gradingStartDate = dateGroup.getGradingStartDate(); |
116 | 0 | this.gradingEndDate = dateGroup.getGradingEndDate(); |
117 | 0 | _futureElements = null; |
118 | 0 | } |
119 | |
|
120 | |
|
121 | |
@Override |
122 | |
public String getTermKey() { |
123 | 0 | return termKey; |
124 | |
} |
125 | |
|
126 | |
|
127 | |
@Override |
128 | |
public Date getRegistrationStartDate() { |
129 | 0 | return registrationStartDate; |
130 | |
} |
131 | |
|
132 | |
public Date getRegistrationEndDate() { |
133 | 0 | return registrationEndDate; |
134 | |
} |
135 | |
|
136 | |
|
137 | |
@Override |
138 | |
public Date getClassStartDate() { |
139 | 0 | return classStartDate; |
140 | |
} |
141 | |
|
142 | |
@Override |
143 | |
public Date getClassEndDate() { |
144 | 0 | return classEndDate; |
145 | |
} |
146 | |
|
147 | |
|
148 | |
@Override |
149 | |
public Date getAddDate() { |
150 | 0 | return addDate; |
151 | |
} |
152 | |
|
153 | |
|
154 | |
@Override |
155 | |
public Date getDropDate() { |
156 | 0 | return dropDate; |
157 | |
} |
158 | |
|
159 | |
|
160 | |
@Override |
161 | |
public Date getFinalExamStartDate() { |
162 | 0 | return finalExamStartDate; |
163 | |
} |
164 | |
|
165 | |
|
166 | |
@Override |
167 | |
public Date getFinalExamEndDate() { |
168 | 0 | return finalExamEndDate; |
169 | |
} |
170 | |
|
171 | |
|
172 | |
@Override |
173 | |
public Date getGradingStartDate() { |
174 | 0 | return gradingStartDate; |
175 | |
} |
176 | |
|
177 | |
|
178 | |
@Override |
179 | |
public Date getGradingEndDate() { |
180 | 0 | return gradingEndDate; |
181 | |
} |
182 | |
|
183 | |
|
184 | |
|
185 | |
|
186 | 0 | public static class Builder implements ModelBuilder<RegistrationDateGroupInfo>, RegistrationDateGroup { |
187 | |
private String termKey; |
188 | |
private Date registrationStartDate; |
189 | |
private Date registrationEndDate; |
190 | |
private Date classStartDate; |
191 | |
private Date classEndDate; |
192 | |
private Date addDate; |
193 | |
private Date dropDate; |
194 | |
private Date finalsStartDate; |
195 | |
private Date finalsEndDate; |
196 | |
private Date gradingStartDate; |
197 | |
private Date gradingEndDate; |
198 | |
|
199 | |
|
200 | |
|
201 | |
|
202 | 0 | public Builder() { |
203 | 0 | } |
204 | |
|
205 | |
|
206 | |
|
207 | |
|
208 | |
|
209 | 0 | public Builder(RegistrationDateGroup dateGroup) { |
210 | 0 | termKey = dateGroup.getTermKey(); |
211 | 0 | registrationStartDate = dateGroup.getRegistrationStartDate(); |
212 | 0 | registrationEndDate = dateGroup.getRegistrationStartDate(); |
213 | 0 | classStartDate = dateGroup.getClassStartDate(); |
214 | 0 | classEndDate = dateGroup.getClassStartDate(); |
215 | 0 | addDate = dateGroup.getAddDate(); |
216 | 0 | dropDate = dateGroup.getDropDate(); |
217 | 0 | finalsStartDate = dateGroup.getFinalExamStartDate(); |
218 | 0 | finalsEndDate = dateGroup.getFinalExamStartDate(); |
219 | 0 | gradingStartDate = dateGroup.getGradingStartDate(); |
220 | 0 | gradingEndDate = dateGroup.getGradingStartDate(); |
221 | 0 | } |
222 | |
|
223 | |
|
224 | |
|
225 | |
|
226 | |
|
227 | |
|
228 | |
public RegistrationDateGroupInfo build() { |
229 | 0 | return new RegistrationDateGroupInfo(this); |
230 | |
} |
231 | |
|
232 | |
@Override |
233 | |
public String getTermKey() { |
234 | 0 | return termKey; |
235 | |
} |
236 | |
|
237 | |
public void setTermKey(String termKey) { |
238 | 0 | this.termKey = termKey; |
239 | 0 | } |
240 | |
|
241 | |
@Override |
242 | |
public Date getRegistrationStartDate() { |
243 | 0 | return registrationStartDate; |
244 | |
} |
245 | |
|
246 | |
public void setRegistrationStartDate(Date date) { |
247 | 0 | this.registrationStartDate = date; |
248 | 0 | } |
249 | |
|
250 | |
|
251 | |
@Override |
252 | |
public Date getRegistrationEndDate() { |
253 | 0 | return registrationEndDate; |
254 | |
} |
255 | |
|
256 | |
public void setRegistrationEndDate(Date date) { |
257 | 0 | this.registrationEndDate = date; |
258 | 0 | } |
259 | |
|
260 | |
|
261 | |
@Override |
262 | |
public Date getClassStartDate() { |
263 | 0 | return classStartDate; |
264 | |
} |
265 | |
|
266 | |
public void setClassStartDate(Date date) { |
267 | 0 | this.classStartDate = date; |
268 | 0 | } |
269 | |
|
270 | |
|
271 | |
@Override |
272 | |
public Date getClassEndDate() { |
273 | 0 | return classEndDate; |
274 | |
} |
275 | |
|
276 | |
public void setClassEndDate(Date date) { |
277 | 0 | this.classEndDate = date; |
278 | 0 | } |
279 | |
|
280 | |
|
281 | |
@Override |
282 | |
public Date getAddDate() { |
283 | 0 | return addDate; |
284 | |
} |
285 | |
|
286 | |
public void setAddDate(Date date) { |
287 | 0 | this.addDate = date; |
288 | 0 | } |
289 | |
|
290 | |
|
291 | |
@Override |
292 | |
public Date getDropDate() { |
293 | 0 | return dropDate; |
294 | |
} |
295 | |
|
296 | |
public void setDropDate(Date date) { |
297 | 0 | this.dropDate = date; |
298 | 0 | } |
299 | |
|
300 | |
|
301 | |
@Override |
302 | |
public Date getFinalExamStartDate() { |
303 | 0 | return finalsStartDate; |
304 | |
} |
305 | |
|
306 | |
public void setFinalExamStartDate(Date date) { |
307 | 0 | this.finalsStartDate = date; |
308 | 0 | } |
309 | |
|
310 | |
|
311 | |
@Override |
312 | |
public Date getFinalExamEndDate() { |
313 | 0 | return finalsEndDate; |
314 | |
} |
315 | |
|
316 | |
public void setFinalExamEndDate(Date date) { |
317 | 0 | this.finalsEndDate = date; |
318 | 0 | } |
319 | |
|
320 | |
@Override |
321 | |
public Date getGradingStartDate() { |
322 | 0 | return gradingStartDate; |
323 | |
} |
324 | |
|
325 | |
public void setGradingStartDate(Date date) { |
326 | 0 | this.gradingStartDate = date; |
327 | 0 | } |
328 | |
|
329 | |
|
330 | |
@Override |
331 | |
public Date getGradingEndDate() { |
332 | 0 | return gradingEndDate; |
333 | |
} |
334 | |
|
335 | |
public void setGradingEndDate(Date date) { |
336 | 0 | this.gradingEndDate = date; |
337 | 0 | } |
338 | |
} |
339 | |
} |