1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.r2.common.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.w3c.dom.Element; |
29 | |
|
30 | |
import org.kuali.student.r2.common.infc.Amount; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
@XmlAccessorType(XmlAccessType.FIELD) |
39 | |
@XmlType(name = "AmountInfo", propOrder = { |
40 | |
"unitTypeKey", "unitQuantity", "_futureElements" }) |
41 | |
|
42 | |
public class AmountInfo |
43 | |
implements Amount, Serializable { |
44 | |
|
45 | |
private static final long serialVersionUID = 1L; |
46 | |
|
47 | |
@XmlElement |
48 | |
private String unitTypeKey; |
49 | |
|
50 | |
@XmlElement |
51 | |
private String unitQuantity; |
52 | |
|
53 | |
@XmlAnyElement |
54 | |
private List<Element> _futureElements; |
55 | |
|
56 | 0 | public AmountInfo() { |
57 | 0 | } |
58 | |
|
59 | 0 | public AmountInfo(Amount amount) { |
60 | 0 | if (amount != null) { |
61 | 0 | this.unitQuantity = amount.getUnitQuantity(); |
62 | 0 | this.unitTypeKey = amount.getUnitTypeKey(); |
63 | |
} |
64 | 0 | } |
65 | |
|
66 | |
@Override |
67 | |
public String getUnitTypeKey() { |
68 | 0 | return unitTypeKey; |
69 | |
} |
70 | |
|
71 | |
public void setUnitTypeKey(String unitTypeKey) { |
72 | 0 | this.unitTypeKey = unitTypeKey; |
73 | 0 | } |
74 | |
|
75 | |
@Override |
76 | |
public String getUnitQuantity() { |
77 | 0 | return unitQuantity; |
78 | |
} |
79 | |
|
80 | |
public void setUnitQuantity(String unitQuantity) { |
81 | 0 | this.unitQuantity = unitQuantity; |
82 | 0 | } |
83 | |
|
84 | |
|
85 | |
@Override |
86 | |
@Deprecated |
87 | |
public String getUnitType() { |
88 | 0 | return getUnitTypeKey(); |
89 | |
} |
90 | |
|
91 | |
@Deprecated |
92 | |
public void setUnitType(String unitTypeKey) { |
93 | 0 | setUnitTypeKey(unitTypeKey); |
94 | 0 | } |
95 | |
} |