1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.kuali.student.r2.lum.course.dto; |
12 | |
|
13 | |
import java.io.Serializable; |
14 | |
import java.util.List; |
15 | |
|
16 | |
import javax.xml.bind.annotation.XmlAccessType; |
17 | |
import javax.xml.bind.annotation.XmlAccessorType; |
18 | |
import javax.xml.bind.annotation.XmlAnyElement; |
19 | |
import javax.xml.bind.annotation.XmlAttribute; |
20 | |
import javax.xml.bind.annotation.XmlElement; |
21 | |
import javax.xml.bind.annotation.XmlType; |
22 | |
|
23 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
24 | |
import org.kuali.student.r2.lum.course.infc.CourseVariation; |
25 | |
import org.w3c.dom.Element; |
26 | |
|
27 | |
@XmlType(name = "CourseRevenueInfo", propOrder = {"id", "typeKey", "stateKey", "variationTitle", "subjectArea", "courseNumberSuffix", "variationCode", "meta", "attributes", "_futureElements"}) |
28 | |
@XmlAccessorType(XmlAccessType.FIELD) |
29 | |
public class CourseVariationInfo extends IdNamelessEntityInfo implements CourseVariation, Serializable { |
30 | |
|
31 | |
private static final long serialVersionUID = 1L; |
32 | |
|
33 | |
@XmlElement |
34 | |
private String variationTitle; |
35 | |
|
36 | |
@XmlElement |
37 | |
private String subjectArea; |
38 | |
|
39 | |
@XmlElement |
40 | |
private String courseNumberSuffix; |
41 | |
|
42 | |
@XmlElement |
43 | |
private String variationCode; |
44 | |
|
45 | |
@XmlAnyElement |
46 | |
private List<Element> _futureElements; |
47 | |
|
48 | 0 | public CourseVariationInfo() { |
49 | |
|
50 | 0 | } |
51 | |
|
52 | |
public CourseVariationInfo(CourseVariation courseVariation) { |
53 | 0 | super(courseVariation); |
54 | |
|
55 | 0 | if (courseVariation != null) { |
56 | 0 | this.variationTitle = courseVariation.getVariationTitle(); |
57 | 0 | this.subjectArea = courseVariation.getSubjectArea(); |
58 | 0 | this.courseNumberSuffix = courseVariation.getCourseNumberSuffix(); |
59 | 0 | this.variationCode = courseVariation.getVariationCode(); |
60 | |
|
61 | |
} |
62 | 0 | } |
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
@Override |
68 | |
public String getVariationTitle() { |
69 | 0 | return variationTitle; |
70 | |
} |
71 | |
|
72 | |
public void setVariationTitle(String variationTitle) { |
73 | 0 | this.variationTitle = variationTitle; |
74 | 0 | } |
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
@Override |
80 | |
public String getSubjectArea() { |
81 | 0 | return subjectArea; |
82 | |
} |
83 | |
|
84 | |
public void setSubjectArea(String subjectArea) { |
85 | 0 | this.subjectArea = subjectArea; |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
@Override |
93 | |
public String getCourseNumberSuffix() { |
94 | 0 | return courseNumberSuffix; |
95 | |
} |
96 | |
|
97 | |
public void setCourseNumberSuffix(String courseNumberSuffix) { |
98 | 0 | this.courseNumberSuffix = courseNumberSuffix; |
99 | 0 | } |
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
@Override |
106 | |
public String getVariationCode() { |
107 | 0 | return variationCode; |
108 | |
} |
109 | |
|
110 | |
public void setVariationCode(String variationCode) { |
111 | 0 | this.variationCode = variationCode; |
112 | 0 | } |
113 | |
|
114 | |
} |