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.Date; |
21 | |
import java.util.List; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
|
29 | |
import org.kuali.student.enrollment.courseregistration.infc.CreditLoad; |
30 | |
import org.w3c.dom.Element; |
31 | |
|
32 | |
@XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "CreditLoadInfo", propOrder = { |
34 | |
"studentId", "creditLoad", "creditLimit", "additionalCredits", |
35 | |
"_futureElements"}) |
36 | |
|
37 | |
public class CreditLoadInfo |
38 | |
implements CreditLoad, Serializable { |
39 | |
|
40 | |
private static final long serialVersionUID = 1L; |
41 | |
|
42 | |
@XmlElement |
43 | |
private String studentId; |
44 | |
|
45 | |
@XmlElement |
46 | |
private String creditLoad; |
47 | |
|
48 | |
@XmlElement |
49 | |
private String creditLimit; |
50 | |
|
51 | |
@XmlElement |
52 | |
private String additionalCredits; |
53 | |
|
54 | |
@XmlAnyElement |
55 | |
private List<Element> _futureElements; |
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | 0 | public CreditLoadInfo() { |
62 | 0 | } |
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | 0 | public CreditLoadInfo(CreditLoad creditLoad) { |
71 | 0 | if (creditLoad != null) { |
72 | 0 | this.studentId = creditLoad.getStudentId(); |
73 | 0 | this.creditLoad = creditLoad.getCreditLoad(); |
74 | 0 | this.creditLimit = creditLoad.getCreditLimit(); |
75 | 0 | this.additionalCredits = creditLoad.getAdditionalCredits(); |
76 | |
} |
77 | 0 | } |
78 | |
|
79 | |
@Override |
80 | |
public String getStudentId() { |
81 | 0 | return studentId; |
82 | |
} |
83 | |
|
84 | |
public void setStudentId(String studentId) { |
85 | 0 | this.studentId = studentId; |
86 | 0 | } |
87 | |
|
88 | |
@Override |
89 | |
public String getCreditLoad() { |
90 | 0 | return creditLoad; |
91 | |
} |
92 | |
|
93 | |
public void setCreditLoad(String creditLoad) { |
94 | 0 | this.creditLoad = creditLoad; |
95 | 0 | } |
96 | |
|
97 | |
@Override |
98 | |
public String getCreditLimit() { |
99 | 0 | return creditLimit; |
100 | |
} |
101 | |
|
102 | |
public void setCreditLimit(String creditLimit) { |
103 | 0 | this.creditLimit = creditLimit; |
104 | 0 | } |
105 | |
|
106 | |
@Override |
107 | |
public String getAdditionalCredits() { |
108 | 0 | return additionalCredits; |
109 | |
} |
110 | |
|
111 | |
public void setAdditionalCredits(String credits) { |
112 | 0 | this.additionalCredits = credits; |
113 | 0 | } |
114 | |
} |