1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.krad.keyvalues; |
17 | |
|
18 | |
import org.kuali.rice.core.util.ConcreteKeyValue; |
19 | |
import org.kuali.rice.core.util.KeyValue; |
20 | |
import org.kuali.rice.krad.util.KRADConstants; |
21 | |
|
22 | |
import java.util.ArrayList; |
23 | |
import java.util.Collections; |
24 | |
import java.util.List; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | public class IndicatorValuesFinder extends KeyValuesBase { |
32 | |
|
33 | 0 | public static final IndicatorValuesFinder INSTANCE = new IndicatorValuesFinder(); |
34 | |
|
35 | |
protected static final List<KeyValue> ACTIVE_LABELS; |
36 | |
static { |
37 | 0 | final List<KeyValue> activeLabels = new ArrayList<KeyValue>(3); |
38 | 0 | activeLabels.add(new ConcreteKeyValue(KRADConstants.YES_INDICATOR_VALUE, "Yes")); |
39 | 0 | activeLabels.add(new ConcreteKeyValue(KRADConstants.NO_INDICATOR_VALUE, "No")); |
40 | 0 | activeLabels.add(new ConcreteKeyValue("", "Both")); |
41 | |
|
42 | 0 | ACTIVE_LABELS = Collections.unmodifiableList(activeLabels); |
43 | 0 | } |
44 | |
|
45 | |
@Override |
46 | |
public List<KeyValue> getKeyValues() { |
47 | 0 | return ACTIVE_LABELS; |
48 | |
} |
49 | |
} |