Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RuleAttributeTypeValuesFinder |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007-2009 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.kew.rule.bo; | |
17 | ||
18 | import java.util.ArrayList; | |
19 | import java.util.Collections; | |
20 | import java.util.List; | |
21 | ||
22 | import org.kuali.rice.core.util.KeyValue; | |
23 | import org.kuali.rice.core.util.ConcreteKeyValue; | |
24 | import org.kuali.rice.kew.util.KEWConstants; | |
25 | import org.kuali.rice.krad.keyvalues.KeyValuesBase; | |
26 | ||
27 | /** | |
28 | * This is a description of what this class does - ewestfal don't forget to fill this in. | |
29 | * | |
30 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
31 | * | |
32 | */ | |
33 | 0 | public class RuleAttributeTypeValuesFinder extends KeyValuesBase { |
34 | ||
35 | private static final List<KeyValue> RULE_ATTRIBUTE_TYPES; | |
36 | ||
37 | static { | |
38 | 0 | final List<KeyValue> ruleAttributeTypes = new ArrayList<KeyValue>(); |
39 | 0 | for (String ruleAttributeType : KEWConstants.RULE_ATTRIBUTE_TYPES) { |
40 | 0 | ruleAttributeTypes.add(new ConcreteKeyValue(ruleAttributeType, KEWConstants.RULE_ATTRIBUTE_TYPE_MAP.get(ruleAttributeType))); |
41 | } | |
42 | 0 | RULE_ATTRIBUTE_TYPES = Collections.unmodifiableList(ruleAttributeTypes); |
43 | 0 | } |
44 | ||
45 | @Override | |
46 | public List<KeyValue> getKeyValues() { | |
47 | 0 | return RULE_ATTRIBUTE_TYPES; |
48 | } | |
49 | ||
50 | } |