1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.classI.lrc.dto; |
17 | |
|
18 | |
import java.util.ArrayList; |
19 | |
import java.util.Date; |
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.XmlAttribute; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
|
28 | |
import org.kuali.student.r2.common.dto.KeyEntityInfo; |
29 | |
import org.kuali.student.r2.lum.classI.lrc.ResultValueGroup; |
30 | |
import org.kuali.student.r2.lum.classI.lrc.ResultValueGroupType; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
@XmlType(name = "ResultValueGroupInfo", propOrder = { "key", "typeKey", "stateKey", |
40 | |
"name", "descr", "resultValues", "type", |
41 | |
"effectiveDate", "expirationDate", "id", "metaInfo", "attributes" }) |
42 | |
public class ResultValueGroupInfo extends KeyEntityInfo implements ResultValueGroup { |
43 | |
|
44 | |
private static final long serialVersionUID = 1L; |
45 | |
|
46 | |
@XmlElement |
47 | |
private List<String> resultValues; |
48 | |
|
49 | |
@XmlElement |
50 | |
private Date effectiveDate; |
51 | |
|
52 | |
@XmlElement |
53 | |
private Date expirationDate; |
54 | |
|
55 | |
@XmlAttribute |
56 | |
private ResultValueGroupType type; |
57 | |
|
58 | |
@XmlAttribute |
59 | |
private String id; |
60 | |
|
61 | 0 | public ResultValueGroupInfo() { |
62 | |
|
63 | 0 | } |
64 | |
|
65 | |
public ResultValueGroupInfo(String id, List<String> resultValues, Date effectiveDate, Date expirationDate, |
66 | |
ResultValueGroupType type) { |
67 | 0 | super(); |
68 | 0 | this.resultValues = resultValues; |
69 | 0 | this.effectiveDate = effectiveDate; |
70 | 0 | this.expirationDate = expirationDate; |
71 | 0 | this.type = type; |
72 | 0 | this.id = id; |
73 | 0 | } |
74 | |
|
75 | |
public static ResultValueGroupInfo createNewResultValueGroupInfoFromResultValueGroupInfo( |
76 | |
ResultValueGroupInfo resultValueGroupInfo) { |
77 | 0 | return new ResultValueGroupInfo(resultValueGroupInfo.getId(), |
78 | |
resultValueGroupInfo.getResultValues(), |
79 | |
resultValueGroupInfo.getEffectiveDate(), |
80 | |
resultValueGroupInfo.getExpirationDate(), |
81 | |
resultValueGroupInfo.getType()); |
82 | |
} |
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
|
88 | |
public List<String> getResultValues() { |
89 | 0 | if (resultValues == null) { |
90 | 0 | resultValues = new ArrayList<String>(0); |
91 | |
} |
92 | 0 | return resultValues; |
93 | |
} |
94 | |
|
95 | |
public void setResultValues(List<String> resultValues) { |
96 | 0 | this.resultValues = resultValues; |
97 | 0 | } |
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
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 | |
|
114 | |
|
115 | |
|
116 | |
|
117 | |
|
118 | |
|
119 | |
|
120 | |
public Date getExpirationDate() { |
121 | 0 | return expirationDate; |
122 | |
} |
123 | |
|
124 | |
public void setExpirationDate(Date expirationDate) { |
125 | 0 | this.expirationDate = expirationDate; |
126 | 0 | } |
127 | |
|
128 | |
|
129 | |
|
130 | |
|
131 | |
public ResultValueGroupType getType() { |
132 | 0 | return type; |
133 | |
} |
134 | |
|
135 | |
public void setType(ResultValueGroupType type) { |
136 | 0 | this.type = type; |
137 | 0 | } |
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
public String getId() { |
145 | 0 | return id; |
146 | |
} |
147 | |
|
148 | |
public void setId(String id) { |
149 | 0 | this.id = id; |
150 | 0 | } |
151 | |
|
152 | |
} |