1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.field;
17
18 import java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.HashMap;
21 import java.util.List;
22 import java.util.Map;
23
24 import org.kuali.rice.krad.datadictionary.Copyable;
25 import org.kuali.rice.krad.uif.util.CopyUtils;
26
27
28
29
30
31
32
33 public class AttributeQueryResult implements Serializable, Copyable {
34 private static final long serialVersionUID = -6688384365943881516L;
35
36 private String resultMessage;
37 private String resultMessageStyleClasses;
38
39 private Map<String, String> resultFieldData;
40 private List<Object> resultData;
41
42 public AttributeQueryResult() {
43 resultFieldData = new HashMap<String, String>();
44 resultData = new ArrayList<Object>();
45 }
46
47
48
49
50
51
52
53 public String getResultMessage() {
54 return resultMessage;
55 }
56
57
58
59
60
61
62 public void setResultMessage(String resultMessage) {
63 this.resultMessage = resultMessage;
64 }
65
66
67
68
69
70
71 public String getResultMessageStyleClasses() {
72 return resultMessageStyleClasses;
73 }
74
75
76
77
78
79
80 public void setResultMessageStyleClasses(String resultMessageStyleClasses) {
81 this.resultMessageStyleClasses = resultMessageStyleClasses;
82 }
83
84
85
86
87
88
89
90 public Map<String, String> getResultFieldData() {
91 return resultFieldData;
92 }
93
94
95
96
97
98
99 public void setResultFieldData(Map<String, String> resultFieldData) {
100 this.resultFieldData = resultFieldData;
101 }
102
103
104
105
106
107
108 public List<Object> getResultData() {
109 return resultData;
110 }
111
112
113
114
115
116
117 public void setResultData(List<Object> resultData) {
118 this.resultData = resultData;
119 }
120
121
122
123
124 @Override
125 public AttributeQueryResult clone() throws CloneNotSupportedException {
126 return (AttributeQueryResult) super.clone();
127 }
128
129
130
131
132
133
134 @Override
135 public void preventModification() {}
136
137
138
139
140
141 public final <T> T copy() {
142 return CopyUtils.copy(this);
143 }
144
145
146
147
148 @Override
149 public Copyable unwrap() {
150 return this;
151 }
152 }