1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.courseoffering.dto;
18
19 import org.kuali.student.enrollment.courseoffering.infc.ActivityOfferingSet;
20 import org.w3c.dom.Element;
21
22 import javax.xml.bind.annotation.XmlAccessType;
23 import javax.xml.bind.annotation.XmlAccessorType;
24 import javax.xml.bind.annotation.XmlAnyElement;
25 import javax.xml.bind.annotation.XmlElement;
26 import javax.xml.bind.annotation.XmlType;
27
28 import java.util.ArrayList;
29 import java.util.List;
30 import java.io.Serializable;
31
32
33
34
35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "ActivityOfferingSetInfo", propOrder = {
37 "id", "activityOfferingType", "activityOfferingIds",
38 "_futureElements"})
39
40 public class ActivityOfferingSetInfo
41 implements ActivityOfferingSet, Serializable {
42
43 private static final long serialVersionUID = 1L;
44
45 @XmlElement
46 private String id;
47
48 @XmlElement
49 private String activityOfferingType;
50
51 @XmlElement
52 private List<String> activityOfferingIds;
53
54 @XmlAnyElement
55 private List<Element> _futureElements;
56
57
58
59
60
61 public ActivityOfferingSetInfo() {
62 }
63
64
65
66
67
68
69
70
71 public ActivityOfferingSetInfo(ActivityOfferingSet activityOfferingSet) {
72 this.id = activityOfferingSet.getId();
73
74 if (activityOfferingSet == null) {
75 return;
76 }
77
78 this.activityOfferingType = activityOfferingSet.getActivityOfferingType();
79
80 if (activityOfferingSet.getActivityOfferingIds() != null) {
81 this.activityOfferingIds = new ArrayList<String>(activityOfferingSet.getActivityOfferingIds());
82 }
83 }
84
85 @Override
86 public String getId() {
87 return id;
88 }
89
90 public void setId(String id) {
91 this.id = id;
92 }
93
94 @Override
95 public String getActivityOfferingType() {
96 return this.activityOfferingType;
97 }
98
99 public void setActivityOfferingType(String activityOfferingType) {
100 this.activityOfferingType = activityOfferingType;
101 }
102
103 @Override
104 public List<String> getActivityOfferingIds() {
105 if (activityOfferingIds == null) {
106 activityOfferingIds = new ArrayList<String>();
107 }
108
109 return activityOfferingIds;
110 }
111
112 public void setActivityOfferingIds(List<String> activityOfferingIds) {
113 this.activityOfferingIds = activityOfferingIds;
114 }
115 }