1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.student.dataobject;
17
18 import java.util.ArrayList;
19 import java.util.Date;
20 import java.util.List;
21
22
23
24
25 public class CourseSection {
26
27 private String section;
28 private String registrationId;
29 private String term;
30 private Date startDate;
31 private Date endDate;
32 private boolean customMeetingTime;
33 private String standardMeetingSchedule;
34 private String standardMeetingTime;
35 private String attendanceType;
36
37 private Integer weeklyInClassHours;
38 private Integer weeklyOutOfClassHours;
39 private Integer termInClassHours;
40 private Integer termOutOfClassHours;
41
42 private Integer totalMinEnrollment;
43 private Integer totalMaxEnrollment;
44
45 private String building;
46 private String room;
47
48 private boolean waitlist;
49 private String waitlistType;
50 private Integer waitlistMaximum;
51
52 private boolean finalExam;
53 private Date finalExamDate;
54 private String finalExamStartTime;
55 private String finalExamEndTime;
56 private String finalExamBuilding;
57 private String finalExamRoom;
58
59 private boolean publish;
60 private String publishTo;
61
62 private String scheduleComments;
63 private String courseUrl;
64 private String internetClassProvider;
65
66 private Course course;
67
68 private List<CourseInstructor> instructors;
69
70 public CourseSection() {
71 instructors = new ArrayList<CourseInstructor>();
72 }
73
74 public String getSection() {
75 return section;
76 }
77
78 public void setSection(String section) {
79 this.section = section;
80 }
81
82 public String getRegistrationId() {
83 return registrationId;
84 }
85
86 public void setRegistrationId(String registrationId) {
87 this.registrationId = registrationId;
88 }
89
90 public String getTerm() {
91 return term;
92 }
93
94 public void setTerm(String term) {
95 this.term = term;
96 }
97
98 public Date getStartDate() {
99 return startDate;
100 }
101
102 public void setStartDate(Date startDate) {
103 this.startDate = startDate;
104 }
105
106 public Date getEndDate() {
107 return endDate;
108 }
109
110 public void setEndDate(Date endDate) {
111 this.endDate = endDate;
112 }
113
114 public boolean isCustomMeetingTime() {
115 return customMeetingTime;
116 }
117
118 public void setCustomMeetingTime(boolean customMeetingTime) {
119 this.customMeetingTime = customMeetingTime;
120 }
121
122 public String getStandardMeetingSchedule() {
123 return standardMeetingSchedule;
124 }
125
126 public void setStandardMeetingSchedule(String standardMeetingSchedule) {
127 this.standardMeetingSchedule = standardMeetingSchedule;
128 }
129
130 public String getStandardMeetingTime() {
131 return standardMeetingTime;
132 }
133
134 public void setStandardMeetingTime(String standardMeetingTime) {
135 this.standardMeetingTime = standardMeetingTime;
136 }
137
138 public String getAttendanceType() {
139 return attendanceType;
140 }
141
142 public void setAttendanceType(String attendanceType) {
143 this.attendanceType = attendanceType;
144 }
145
146 public Integer getWeeklyInClassHours() {
147 return weeklyInClassHours;
148 }
149
150 public void setWeeklyInClassHours(Integer weeklyInClassHours) {
151 this.weeklyInClassHours = weeklyInClassHours;
152 }
153
154 public Integer getWeeklyOutOfClassHours() {
155 return weeklyOutOfClassHours;
156 }
157
158 public void setWeeklyOutOfClassHours(Integer weeklyOutOfClassHours) {
159 this.weeklyOutOfClassHours = weeklyOutOfClassHours;
160 }
161
162 public Integer getWeeklyTotalHours() {
163 Integer total = 0;
164 if (weeklyInClassHours != null) {
165 total += weeklyInClassHours;
166 }
167 if (weeklyOutOfClassHours != null) {
168 total += weeklyOutOfClassHours;
169 }
170 return total;
171 }
172
173 public Integer getTermInClassHours() {
174 return termInClassHours;
175 }
176
177 public void setTermInClassHours(Integer termInClassHours) {
178 this.termInClassHours = termInClassHours;
179 }
180
181 public Integer getTermOutOfClassHours() {
182 return termOutOfClassHours;
183 }
184
185 public void setTermOutOfClassHours(Integer termOutOfClassHours) {
186 this.termOutOfClassHours = termOutOfClassHours;
187 }
188
189 public Integer getTermTotalHours() {
190 Integer total = 0;
191 if (termInClassHours != null) {
192 total += termInClassHours;
193 }
194 if (termOutOfClassHours != null) {
195 total += termOutOfClassHours;
196 }
197 return total;
198 }
199
200 public Integer getTotalMinEnrollment() {
201 return totalMinEnrollment;
202 }
203
204 public void setTotalMinEnrollment(Integer totalMinEnrollment) {
205 this.totalMinEnrollment = totalMinEnrollment;
206 }
207
208 public Integer getTotalMaxEnrollment() {
209 return totalMaxEnrollment;
210 }
211
212 public void setTotalMaxEnrollment(Integer totalMaxEnrollment) {
213 this.totalMaxEnrollment = totalMaxEnrollment;
214 }
215
216 public String getBuilding() {
217 return building;
218 }
219
220 public void setBuilding(String building) {
221 this.building = building;
222 }
223
224 public String getRoom() {
225 return room;
226 }
227
228 public void setRoom(String room) {
229 this.room = room;
230 }
231
232 public boolean isWaitlist() {
233 return waitlist;
234 }
235
236 public void setWaitlist(boolean waitlist) {
237 this.waitlist = waitlist;
238 }
239
240 public String getWaitlistType() {
241 return waitlistType;
242 }
243
244 public void setWaitlistType(String waitlistType) {
245 this.waitlistType = waitlistType;
246 }
247
248 public Integer getWaitlistMaximum() {
249 return waitlistMaximum;
250 }
251
252 public void setWaitlistMaximum(Integer waitlistMaximum) {
253 this.waitlistMaximum = waitlistMaximum;
254 }
255
256 public boolean isFinalExam() {
257 return finalExam;
258 }
259
260 public void setFinalExam(boolean finalExam) {
261 this.finalExam = finalExam;
262 }
263
264 public Date getFinalExamDate() {
265 return finalExamDate;
266 }
267
268 public void setFinalExamDate(Date finalExamDate) {
269 this.finalExamDate = finalExamDate;
270 }
271
272 public String getFinalExamStartTime() {
273 return finalExamStartTime;
274 }
275
276 public void setFinalExamStartTime(String finalExamStartTime) {
277 this.finalExamStartTime = finalExamStartTime;
278 }
279
280 public String getFinalExamEndTime() {
281 return finalExamEndTime;
282 }
283
284 public void setFinalExamEndTime(String finalExamEndTime) {
285 this.finalExamEndTime = finalExamEndTime;
286 }
287
288 public String getFinalExamBuilding() {
289 return finalExamBuilding;
290 }
291
292 public void setFinalExamBuilding(String finalExamBuilding) {
293 this.finalExamBuilding = finalExamBuilding;
294 }
295
296 public String getFinalExamRoom() {
297 return finalExamRoom;
298 }
299
300 public void setFinalExamRoom(String finalExamRoom) {
301 this.finalExamRoom = finalExamRoom;
302 }
303
304 public boolean isPublish() {
305 return publish;
306 }
307
308 public void setPublish(boolean publish) {
309 this.publish = publish;
310 }
311
312 public String getPublishTo() {
313 return publishTo;
314 }
315
316 public void setPublishTo(String publishTo) {
317 this.publishTo = publishTo;
318 }
319
320 public String getScheduleComments() {
321 return scheduleComments;
322 }
323
324 public void setScheduleComments(String scheduleComments) {
325 this.scheduleComments = scheduleComments;
326 }
327
328 public String getCourseUrl() {
329 return courseUrl;
330 }
331
332 public void setCourseUrl(String courseUrl) {
333 this.courseUrl = courseUrl;
334 }
335
336 public String getInternetClassProvider() {
337 return internetClassProvider;
338 }
339
340 public void setInternetClassProvider(String internetClassProvider) {
341 this.internetClassProvider = internetClassProvider;
342 }
343
344 public Course getCourse() {
345 return course;
346 }
347
348 public void setCourse(Course course) {
349 this.course = course;
350 }
351
352 public List<CourseInstructor> getInstructors() {
353 return instructors;
354 }
355
356 public void setInstructors(List<CourseInstructor> instructors) {
357 this.instructors = instructors;
358 }
359 }