1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.courseregistration.dto;
18
19 import java.io.Serializable;
20 import java.util.List;
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 org.kuali.student.enrollment.courseregistration.infc.CourseRegistration;
29 import org.kuali.student.r2.common.dto.RelationshipInfo;
30 import org.w3c.dom.Element;
31
32 @XmlAccessorType(XmlAccessType.FIELD)
33 @XmlType(name = "CourseRegistrationInfo", propOrder = {
34 "id", "typeKey", "stateKey",
35 "studentId", "courseOfferingId", "credits", "gradingOptionId",
36 "effectiveDate", "expirationDate", "meta", "attributes",
37 "_futureElements"})
38
39 public class CourseRegistrationInfo
40 extends RelationshipInfo
41 implements CourseRegistration, Serializable {
42
43 private static final long serialVersionUID = 1L;
44
45 @XmlElement
46 private String studentId;
47
48 @XmlElement
49 private String courseOfferingId;
50
51 @XmlElement
52 private String credits;
53
54 @XmlElement
55 private String gradingOptionId;
56
57 @XmlAnyElement
58 private List<Element> _futureElements;
59
60
61
62
63
64 public CourseRegistrationInfo() {
65 }
66
67
68
69
70
71
72
73 public CourseRegistrationInfo(CourseRegistration courseRegistration) {
74 super(courseRegistration);
75
76 if (courseRegistration != null) {
77 this.studentId = courseRegistration.getStudentId();
78 this.courseOfferingId = courseRegistration.getCourseOfferingId();
79 this.credits = courseRegistration.getCredits();
80 this.gradingOptionId = courseRegistration.getGradingOptionId();
81 }
82 }
83
84 @Override
85 public String getStudentId() {
86 return studentId;
87 }
88
89 public void setStudentId(String studentId) {
90 this.studentId = studentId;
91 }
92
93 @Override
94 public String getCourseOfferingId() {
95 return courseOfferingId;
96 }
97
98 public void setCourseOfferingId(String courseOfferingId) {
99 this.courseOfferingId = courseOfferingId;
100 }
101
102 @Override
103 public String getCredits() {
104 return credits;
105 }
106
107 public void setCredits(String credits) {
108 this.credits = credits;
109 }
110
111 @Override
112 public String getGradingOptionId() {
113 return gradingOptionId;
114 }
115
116 public void setGradingOptionId(String gradingOptionId) {
117 this.gradingOptionId = gradingOptionId;
118 }
119 }