1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.scheduling.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.core.scheduling.infc.ScheduleResponseItem; |
19 | |
import org.w3c.dom.Element; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
import java.io.Serializable; |
27 | |
import java.util.ArrayList; |
28 | |
import java.util.List; |
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
@XmlAccessorType(XmlAccessType.FIELD) |
35 | |
@XmlType(name = "ScheduleResponseItemInfo", propOrder = {"id", "scheduleIds", "scheduleRequestItemId", "scheduleResponseId", "_futureElements"}) |
36 | |
public class ScheduleResponseItemInfo implements ScheduleResponseItem, Serializable { |
37 | |
|
38 | |
@XmlElement |
39 | |
private String id; |
40 | |
@XmlElement |
41 | |
private List<String> scheduleIds; |
42 | |
@XmlElement |
43 | |
private String scheduleRequestItemId; |
44 | |
@XmlElement |
45 | |
private String scheduleResponseId; |
46 | |
@XmlAnyElement |
47 | |
private List<Element> _futureElements; |
48 | |
|
49 | 0 | public ScheduleResponseItemInfo() { |
50 | 0 | } |
51 | |
|
52 | 0 | public ScheduleResponseItemInfo(ScheduleResponseItem scheduleResponseItem) { |
53 | 0 | if (null != scheduleResponseItem) { |
54 | 0 | this.id = scheduleResponseItem.getId(); |
55 | 0 | this.scheduleIds = new ArrayList<String>(scheduleResponseItem.getScheduleIds()); |
56 | 0 | this.scheduleRequestItemId = scheduleResponseItem.getScheduleRequestItemId(); |
57 | 0 | this.scheduleResponseId = scheduleResponseItem.getScheduleResponseId(); |
58 | |
} |
59 | 0 | } |
60 | |
|
61 | |
@Override |
62 | |
public String getId() { |
63 | 0 | return this.id; |
64 | |
} |
65 | |
|
66 | |
public void setId(String id) { |
67 | 0 | this.id = id; |
68 | 0 | } |
69 | |
|
70 | |
@Override |
71 | |
public List<String> getScheduleIds() { |
72 | 0 | if (null == this.scheduleIds) { |
73 | 0 | return new ArrayList<String>(); |
74 | |
} |
75 | |
else { |
76 | 0 | return this.scheduleIds; |
77 | |
} |
78 | |
} |
79 | |
|
80 | |
public void setScheduleIds(List<String> scheduleIds) { |
81 | 0 | this.scheduleIds = scheduleIds; |
82 | 0 | } |
83 | |
|
84 | |
@Override |
85 | |
public String getScheduleRequestItemId() { |
86 | 0 | return this.scheduleRequestItemId; |
87 | |
} |
88 | |
|
89 | |
public void setScheduleRequestItemId(String scheduleRequestItemId) { |
90 | 0 | this.scheduleRequestItemId = scheduleRequestItemId; |
91 | 0 | } |
92 | |
|
93 | |
@Override |
94 | |
public String getScheduleResponseId() { |
95 | 0 | return this.scheduleResponseId; |
96 | |
} |
97 | |
|
98 | |
public void setScheduleResponseId(String scheduleResponseId) { |
99 | 0 | this.scheduleResponseId = scheduleResponseId; |
100 | 0 | } |
101 | |
} |