Coverage Report - org.kuali.rice.kew.actionrequest.bo.ActionRequestCodeValuesFinder
 
Classes in this File Line Coverage Branch Coverage Complexity
ActionRequestCodeValuesFinder
0%
0/6
N/A
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.actionrequest.bo;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.List;
 20  
 
 21  
 import org.kuali.rice.core.util.KeyLabelPair;
 22  
 import org.kuali.rice.kew.util.KEWConstants;
 23  
 import org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase;
 24  
 
 25  
 /**
 26  
  * A values finder for returning KEW Action Request codes.
 27  
  * 
 28  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 29  
  */
 30  0
 public class ActionRequestCodeValuesFinder extends KeyValuesBase {
 31  
 
 32  0
         private static final List<KeyLabelPair> actionRequestCodes = new ArrayList<KeyLabelPair>();
 33  
         static {
 34  0
                 for (String actionRequestCode : KEWConstants.ACTION_REQUEST_CODES.keySet()) {
 35  0
                         actionRequestCodes.add(new KeyLabelPair(actionRequestCode, KEWConstants.ACTION_REQUEST_CODES.get(actionRequestCode)));
 36  
                 }
 37  0
         }
 38  
         
 39  
         /**
 40  
          * @see org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder#getKeyValues()
 41  
          */
 42  
         public List<KeyLabelPair> getKeyValues() {
 43  0
                 return actionRequestCodes;
 44  
         }
 45  
 
 46  
 }