1 | |
package org.kuali.student.enrollment.class2.registration.dto; |
2 | |
|
3 | |
import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo; |
4 | |
|
5 | |
import java.io.Serializable; |
6 | |
import java.util.ArrayList; |
7 | |
import java.util.List; |
8 | |
|
9 | |
public class ActivityOfferingWrapper implements Serializable { |
10 | |
private static final long serialVersionUID = 1L; |
11 | |
|
12 | |
private ActivityOfferingInfo activityOffering; |
13 | |
|
14 | |
private List<MeetingScheduleWrapper> meetingScheduleWrappers; |
15 | |
|
16 | 0 | public ActivityOfferingWrapper() { |
17 | 0 | meetingScheduleWrappers = new ArrayList<MeetingScheduleWrapper>(); |
18 | 0 | } |
19 | |
|
20 | |
public ActivityOfferingInfo getActivityOffering() { |
21 | 0 | return activityOffering; |
22 | |
} |
23 | |
|
24 | |
public void setActivityOffering(ActivityOfferingInfo activityOffering) { |
25 | 0 | this.activityOffering = activityOffering; |
26 | 0 | } |
27 | |
|
28 | |
public List<MeetingScheduleWrapper> getMeetingScheduleWrappers() { |
29 | 0 | return meetingScheduleWrappers; |
30 | |
} |
31 | |
|
32 | |
public void setMeetingScheduleWrappers(List<MeetingScheduleWrapper> meetingScheduleWrappers) { |
33 | 0 | this.meetingScheduleWrappers = meetingScheduleWrappers; |
34 | 0 | } |
35 | |
|
36 | |
|
37 | |
public String getTypeName() { |
38 | 0 | String key = activityOffering.getTypeKey(); |
39 | 0 | String name = key.substring(key.lastIndexOf(".") + 1); |
40 | 0 | return String.format( "%s%s", Character.toUpperCase(name.charAt(0)), name.substring(1)); |
41 | |
} |
42 | |
} |