1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.fee.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.List; |
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 | |
|
27 | |
import org.kuali.student.r2.core.fee.infc.EnrollmentFee; |
28 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
29 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
30 | |
import org.w3c.dom.Element; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
38 | |
@XmlType(name = "EnrollmentFeeInfo", propOrder = { |
39 | |
"id", "typeKey", "stateKey", "descr", |
40 | |
"amount", "orgId", "refObjectURI", |
41 | |
"refObjectId", |
42 | |
"meta", "attributes", "_futureElements" }) |
43 | |
|
44 | |
public class EnrollmentFeeInfo |
45 | |
extends IdNamelessEntityInfo |
46 | |
implements EnrollmentFee, Serializable { |
47 | |
|
48 | |
private static final long serialVersionUID = 1L; |
49 | |
|
50 | |
@XmlElement |
51 | |
private RichTextInfo descr; |
52 | |
|
53 | |
@XmlElement |
54 | |
private EnrollmentFeeAmountInfo amount; |
55 | |
|
56 | |
@XmlElement |
57 | |
private String orgId; |
58 | |
|
59 | |
@XmlElement |
60 | |
private String refObjectURI; |
61 | |
|
62 | |
@XmlElement |
63 | |
private String refObjectId; |
64 | |
|
65 | |
@XmlAnyElement |
66 | |
private List<Element> _futureElements; |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | 0 | public EnrollmentFeeInfo() { |
73 | 0 | } |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
public EnrollmentFeeInfo(EnrollmentFee fee) { |
81 | 0 | super(fee); |
82 | |
|
83 | 0 | if (fee != null) { |
84 | 0 | this.descr = new RichTextInfo(fee.getDescr()); |
85 | 0 | this.amount = new EnrollmentFeeAmountInfo(fee.getAmount()); |
86 | 0 | this.orgId = fee.getOrgId(); |
87 | 0 | this.refObjectURI = fee.getRefObjectURI(); |
88 | 0 | this.refObjectId = fee.getRefObjectId(); |
89 | |
} |
90 | 0 | } |
91 | |
|
92 | |
@Override |
93 | |
public RichTextInfo getDescr() { |
94 | 0 | return descr; |
95 | |
} |
96 | |
|
97 | |
public void setDescr(RichTextInfo descr) { |
98 | 0 | this.descr = descr; |
99 | 0 | } |
100 | |
|
101 | |
@Override |
102 | |
public EnrollmentFeeAmountInfo getAmount() { |
103 | 0 | return amount; |
104 | |
} |
105 | |
|
106 | |
public void setAmount(EnrollmentFeeAmountInfo amount) { |
107 | 0 | this.amount = amount;; |
108 | 0 | } |
109 | |
|
110 | |
@Override |
111 | |
public String getOrgId() { |
112 | 0 | return orgId; |
113 | |
} |
114 | |
|
115 | |
public void setOrgId(String orgId) { |
116 | 0 | this.orgId = orgId; |
117 | 0 | } |
118 | |
|
119 | |
@Override |
120 | |
public String getRefObjectURI() { |
121 | 0 | return refObjectURI; |
122 | |
} |
123 | |
|
124 | |
public void setRefObjectURI(String refObjectURI) { |
125 | 0 | this.refObjectURI = refObjectURI; |
126 | 0 | } |
127 | |
|
128 | |
@Override |
129 | |
public String getRefObjectId() { |
130 | 0 | return refObjectId; |
131 | |
} |
132 | |
|
133 | |
public void setRefObjectId(String refObjectId) { |
134 | 0 | this.refObjectId = refObjectId; |
135 | 0 | } |
136 | |
} |