1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.docsearch.web; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
public class SearchAttributeFormContainer implements Serializable { |
26 | |
private static final long serialVersionUID = 8034659910798901330L; |
27 | |
|
28 | |
private String key; |
29 | |
private String value; |
30 | |
private String[] values; |
31 | |
private String alternateValue; |
32 | 0 | private boolean valueSet = false; |
33 | |
|
34 | 0 | public SearchAttributeFormContainer() { |
35 | 0 | } |
36 | |
|
37 | 0 | public SearchAttributeFormContainer(String key, String value) { |
38 | 0 | this.key = key; |
39 | 0 | this.value = value; |
40 | 0 | valueSet = true; |
41 | 0 | } |
42 | |
|
43 | 0 | public SearchAttributeFormContainer(String key, String[] values) { |
44 | 0 | this.key = key; |
45 | 0 | this.values = values; |
46 | 0 | } |
47 | |
|
48 | 0 | public SearchAttributeFormContainer(String key, String value, String alternateValue) { |
49 | 0 | this.key = key; |
50 | 0 | this.value = value; |
51 | 0 | valueSet = true; |
52 | 0 | this.alternateValue = alternateValue; |
53 | 0 | } |
54 | |
|
55 | |
|
56 | |
public String getAlternateValue() { |
57 | 0 | return alternateValue; |
58 | |
} |
59 | |
|
60 | |
public void setAlternateValue(String alternateValue) { |
61 | 0 | this.alternateValue = alternateValue; |
62 | 0 | } |
63 | |
|
64 | |
public String getKey() { |
65 | 0 | return key; |
66 | |
} |
67 | |
|
68 | |
public void setKey(String key) { |
69 | 0 | this.key = key; |
70 | 0 | } |
71 | |
|
72 | |
public String getValue() { |
73 | 0 | return value; |
74 | |
} |
75 | |
|
76 | |
public void setValue(String value) { |
77 | 0 | valueSet = true; |
78 | 0 | this.value = value; |
79 | 0 | } |
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
public String getValueForUserInterface() { |
86 | 0 | valueSet = false; |
87 | 0 | return value; |
88 | |
} |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
public void setValueForUserInterface(String value) { |
95 | 0 | valueSet = true; |
96 | 0 | this.value = value; |
97 | 0 | } |
98 | |
|
99 | |
public String[] getValues() { |
100 | 0 | return values; |
101 | |
} |
102 | |
|
103 | |
public void setValues(String[] values) { |
104 | 0 | this.values = values; |
105 | 0 | } |
106 | |
|
107 | |
public boolean isValueSet() { |
108 | 0 | return valueSet; |
109 | |
} |
110 | |
|
111 | |
} |