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.ArrayList; |
21 | |
import java.util.List; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlAttribute; |
27 | |
import javax.xml.bind.annotation.XmlElement; |
28 | |
import javax.xml.bind.annotation.XmlElementWrapper; |
29 | |
import javax.xml.bind.annotation.XmlType; |
30 | |
|
31 | |
import org.kuali.student.r2.common.infc.SearchParam; |
32 | |
import org.w3c.dom.Element; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
@XmlAccessorType(XmlAccessType.FIELD) |
42 | |
@XmlType(name = "SearchParamInfo", propOrder = { |
43 | |
"key", "values", "_futureElements"}) |
44 | |
@Deprecated |
45 | |
public class SearchParamInfo |
46 | |
implements SearchParam, Serializable { |
47 | |
|
48 | |
private static final long serialVersionUID = 1L; |
49 | |
|
50 | |
@XmlAttribute |
51 | |
private String key; |
52 | |
|
53 | |
@XmlElementWrapper(name="values") |
54 | |
@XmlElement(name="value") |
55 | |
private List<String> values; |
56 | |
|
57 | |
@XmlAnyElement |
58 | |
private List<Element> _futureElements; |
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | 0 | public SearchParamInfo() { |
65 | 0 | } |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | 0 | public SearchParamInfo(SearchParam param) { |
73 | 0 | if (param != null) { |
74 | 0 | this.key = param.getKey(); |
75 | 0 | if (param.getValues() != null) { |
76 | 0 | this.values = new ArrayList<String>(param.getValues()); |
77 | |
} |
78 | |
} |
79 | 0 | } |
80 | |
|
81 | |
@Override |
82 | |
public String getKey() { |
83 | 0 | return key; |
84 | |
} |
85 | |
|
86 | |
public void setKey(String key) { |
87 | 0 | this.key = key; |
88 | 0 | } |
89 | |
|
90 | |
@Override |
91 | |
public List<String> getValues() { |
92 | 0 | return values; |
93 | |
} |
94 | |
|
95 | |
public void setValues(List<String> values) { |
96 | 0 | this.values = values; |
97 | 0 | } |
98 | |
} |