1 | |
package org.kuali.student.enrollment.courseregistration.dto; |
2 | |
|
3 | |
import java.io.Serializable; |
4 | |
import java.util.Date; |
5 | |
import java.util.List; |
6 | |
|
7 | |
import javax.xml.bind.annotation.XmlAccessType; |
8 | |
import javax.xml.bind.annotation.XmlAccessorType; |
9 | |
import javax.xml.bind.annotation.XmlAnyElement; |
10 | |
import javax.xml.bind.annotation.XmlElement; |
11 | |
import javax.xml.bind.annotation.XmlType; |
12 | |
|
13 | |
import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo; |
14 | |
import org.kuali.student.enrollment.courseregistration.infc.ActivityRegistration; |
15 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
16 | |
import org.w3c.dom.Element; |
17 | |
|
18 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
19 | |
@XmlType(name = "ActivityRegistrationInfo", propOrder = {"id", "typeKey", "stateKey", "activityOffering", "studentId", |
20 | |
"effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"}) |
21 | |
public class ActivityRegistrationInfo extends RelationshipInfo implements ActivityRegistration, Serializable { |
22 | |
|
23 | |
private static final long serialVersionUID = 1L; |
24 | |
|
25 | |
@XmlElement |
26 | |
private ActivityOfferingInfo activityOffering; |
27 | |
|
28 | |
@XmlElement |
29 | |
private String studentId; |
30 | |
|
31 | |
@XmlAnyElement |
32 | |
private List<Element> _futureElements; |
33 | |
|
34 | |
public ActivityRegistrationInfo() { |
35 | 0 | super(); |
36 | 0 | this.activityOffering= null; |
37 | 0 | this.studentId = null; |
38 | 0 | this._futureElements = null; |
39 | |
|
40 | 0 | } |
41 | |
|
42 | |
public ActivityRegistrationInfo(ActivityRegistration activityRegistration) { |
43 | 0 | super(activityRegistration); |
44 | |
|
45 | 0 | if (null != activityRegistration) { |
46 | 0 | this.activityOffering = new ActivityOfferingInfo( activityRegistration.getActivityOffering()); |
47 | 0 | this.studentId = activityRegistration.getStudentId(); |
48 | 0 | this._futureElements = null; |
49 | |
} |
50 | 0 | } |
51 | |
|
52 | |
|
53 | |
@Override |
54 | |
public ActivityOfferingInfo getActivityOffering() { |
55 | 0 | return activityOffering; |
56 | |
} |
57 | |
|
58 | |
public void setActivityOffering(ActivityOfferingInfo activityOffering) { |
59 | 0 | this.activityOffering = activityOffering; |
60 | 0 | } |
61 | |
|
62 | |
@Override |
63 | |
public String getStudentId() { |
64 | 0 | return studentId; |
65 | |
} |
66 | |
|
67 | |
public void setStudentId(String studentId) { |
68 | 0 | this.studentId = studentId; |
69 | 0 | } |
70 | |
|
71 | |
} |