1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.util;
17
18 import org.kuali.rice.core.api.util.ConcreteKeyValue;
19 import org.kuali.rice.core.api.util.KeyValue;
20 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
21
22 import java.util.ArrayList;
23 import java.util.List;
24 import java.util.Map;
25
26 public class RecordMethodKeyValueFinder extends KeyValuesBase {
27
28 @Override
29 public List getKeyValues() {
30 List<KeyValue> keyValues = new ArrayList<KeyValue>();
31 for (Map.Entry entry : TkConstants.RECORD_METHOD_MAP.entrySet()) {
32 keyValues.add(new ConcreteKeyValue((String) entry.getKey(), (String) entry.getValue()));
33 }
34 return keyValues;
35 }
36
37 }