1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.kuali.student.r2.lum.lrc.dto; |
12 | |
|
13 | |
import java.io.Serializable; |
14 | |
import java.util.Date; |
15 | |
import java.util.List; |
16 | |
|
17 | |
import javax.xml.bind.annotation.XmlAccessType; |
18 | |
import javax.xml.bind.annotation.XmlAccessorType; |
19 | |
import javax.xml.bind.annotation.XmlAnyElement; |
20 | |
import javax.xml.bind.annotation.XmlElement; |
21 | |
import javax.xml.bind.annotation.XmlType; |
22 | |
|
23 | |
import org.kuali.student.r2.common.dto.KeyEntityInfo; |
24 | |
import org.kuali.student.r2.lum.lrc.infc.ResultValue; |
25 | |
import org.w3c.dom.Element; |
26 | |
|
27 | |
@XmlAccessorType(XmlAccessType.FIELD) |
28 | |
@XmlType(name = "ResultValueInfo", propOrder = {"key", "typeKey", "stateKey", |
29 | |
"name", "descr", "resultScaleKey", "numericValue", "value", |
30 | |
"effectiveDate", "expirationDate", "meta", "attributes", |
31 | |
"_futureElements"}) |
32 | |
public class ResultValueInfo extends KeyEntityInfo implements ResultValue, |
33 | |
Serializable { |
34 | |
|
35 | |
private static final long serialVersionUID = 1L; |
36 | |
|
37 | |
@XmlElement |
38 | |
private String resultScaleKey; |
39 | |
|
40 | |
@XmlElement |
41 | |
private String numericValue; |
42 | |
|
43 | |
@XmlElement |
44 | |
private String value; |
45 | |
|
46 | |
@XmlElement |
47 | |
private Date effectiveDate; |
48 | |
|
49 | |
@XmlElement |
50 | |
private Date expirationDate; |
51 | |
|
52 | |
@XmlAnyElement |
53 | |
private List<Element> _futureElements; |
54 | |
|
55 | |
public ResultValueInfo() { |
56 | 0 | super(); |
57 | 0 | resultScaleKey = null; |
58 | 0 | numericValue = null; |
59 | 0 | value = null; |
60 | 0 | effectiveDate = null; |
61 | 0 | expirationDate = null; |
62 | 0 | } |
63 | |
|
64 | |
public ResultValueInfo(ResultValue resultValueInfo) { |
65 | 0 | super(resultValueInfo); |
66 | 0 | if (null != resultValueInfo) { |
67 | 0 | this.resultScaleKey = resultValueInfo.getResultScaleKey(); |
68 | 0 | this.numericValue = resultValueInfo.getNumericValue(); |
69 | 0 | this.value = resultValueInfo.getValue(); |
70 | 0 | this.effectiveDate = new Date(resultValueInfo.getEffectiveDate() |
71 | |
.getTime()); |
72 | 0 | this.expirationDate = new Date(resultValueInfo.getExpirationDate() |
73 | |
.getTime()); |
74 | |
} |
75 | 0 | } |
76 | |
|
77 | |
@Override |
78 | |
public String getResultScaleKey() { |
79 | 0 | return resultScaleKey; |
80 | |
} |
81 | |
|
82 | |
public void setScaleKey(String resultScaleKey) { |
83 | 0 | this.resultScaleKey = resultScaleKey; |
84 | 0 | } |
85 | |
|
86 | |
@Override |
87 | |
public String getNumericValue() { |
88 | 0 | return numericValue; |
89 | |
} |
90 | |
|
91 | |
public void setNumericValue(String numericValue) { |
92 | 0 | this.numericValue = numericValue; |
93 | 0 | } |
94 | |
|
95 | |
@Override |
96 | |
public String getValue() { |
97 | 0 | return value; |
98 | |
} |
99 | |
|
100 | |
public void setValue(String value) { |
101 | 0 | this.value = value; |
102 | 0 | } |
103 | |
|
104 | |
@Override |
105 | |
public Date getEffectiveDate() { |
106 | 0 | return effectiveDate; |
107 | |
} |
108 | |
|
109 | |
public void setEffectiveDate(Date effectiveDate) { |
110 | 0 | this.effectiveDate = effectiveDate; |
111 | 0 | } |
112 | |
|
113 | |
@Override |
114 | |
public Date getExpirationDate() { |
115 | 0 | return expirationDate; |
116 | |
} |
117 | |
|
118 | |
public void setExpirationDate(Date expirationDate) { |
119 | 0 | this.expirationDate = expirationDate; |
120 | 0 | } |
121 | |
} |