1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.impl.ui;
17
18
19 import org.kuali.rice.core.api.util.ConcreteKeyValue;
20 import org.kuali.rice.core.api.util.KeyValue;
21 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
22 import org.kuali.rice.krms.api.repository.LogicalOperator;
23
24 import java.util.ArrayList;
25 import java.util.Collections;
26 import java.util.List;
27
28
29
30
31
32
33 public class CompoundOpCodeValuesFinder extends KeyValuesBase {
34
35 private static final List<KeyValue> LABELS;
36 static {
37 final List<KeyValue> labels = new ArrayList<KeyValue>( 2 );
38 labels.add(new ConcreteKeyValue(LogicalOperator.AND.getCode(), LogicalOperator.AND.name()));
39 labels.add(new ConcreteKeyValue(LogicalOperator.OR.getCode(), LogicalOperator.OR.name()));
40 LABELS = Collections.unmodifiableList(labels);
41 }
42
43
44
45
46 @Override
47 public List<KeyValue> getKeyValues() {
48 return LABELS;
49 }
50 }