1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.r2.core.search.dto; |
18 | |
|
19 | |
import java.util.List; |
20 | |
import java.io.Serializable; |
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.XmlAttribute; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
|
29 | |
import org.kuali.student.r2.core.search.infc.SearchResultCell; |
30 | |
import org.w3c.dom.Element; |
31 | |
|
32 | |
@XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "SearchResultCellInfo", propOrder = { |
34 | |
"key", "value", "_futureElements" }) |
35 | |
|
36 | |
public class SearchResultCellInfo |
37 | |
implements SearchResultCell, Serializable { |
38 | |
|
39 | |
private static final long serialVersionUID = 1L; |
40 | |
|
41 | |
@XmlAttribute |
42 | |
private String key; |
43 | |
|
44 | |
@XmlElement |
45 | |
private String value; |
46 | |
|
47 | |
@XmlAnyElement |
48 | |
private List<Element> _futureElements; |
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | 0 | public SearchResultCellInfo() { |
55 | 0 | } |
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | 0 | public SearchResultCellInfo(SearchResultCell cell) { |
64 | 0 | if (cell != null) { |
65 | 0 | this.key = cell.getKey(); |
66 | 0 | this.value = cell.getValue(); |
67 | |
} |
68 | 0 | } |
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | 0 | public SearchResultCellInfo(String key, String value) { |
77 | 0 | this.key = key; |
78 | 0 | this.value = value; |
79 | 0 | } |
80 | |
|
81 | |
@Override |
82 | |
public String getValue() { |
83 | 0 | return value; |
84 | |
} |
85 | |
|
86 | |
public void setValue(String value) { |
87 | 0 | this.value = value; |
88 | 0 | } |
89 | |
|
90 | |
@Override |
91 | |
public String getKey() { |
92 | 0 | return key; |
93 | |
} |
94 | |
|
95 | |
public void setKey(String key) { |
96 | 0 | this.key = key; |
97 | 0 | } |
98 | |
|
99 | |
@Override |
100 | |
public String toString() { |
101 | 0 | return "SearchResultCell[key=" + key + ", value=" + value + "]"; |
102 | |
} |
103 | |
} |