Coverage Report - org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder
 
Classes in this File Line Coverage Branch Coverage Complexity
KeyValuesFinder
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2007 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.kns.lookup.keyvalues;
 17  
 
 18  
 import java.util.List;
 19  
 import java.util.Map;
 20  
 
 21  
 /**
 22  
  * This interface defines basic methods value finders.
 23  
  *
 24  
  *
 25  
  */
 26  
 public interface KeyValuesFinder {
 27  
 
 28  
     /**
 29  
      * Builds a list of key values representations for valid value selections.
 30  
      *
 31  
      * @return List of KeyValue objects.
 32  
      */
 33  
     public List getKeyValues();
 34  
 
 35  
     /**
 36  
      * Builds a list of key values representations for valid value selections.
 37  
      *
 38  
      * @param includeActiveOnly whether to only include active values in the list
 39  
      *  
 40  
      * @return List of KeyValue objects.
 41  
      */
 42  
     public List getKeyValues(boolean includeActiveOnly);
 43  
 
 44  
     /**
 45  
      * Returns a map with the key as the key of the map and the label as the value. Used to render the label instead of the code in
 46  
      * the jsp when the field is readonly.
 47  
      *
 48  
      * @return
 49  
      */
 50  
     public Map getKeyLabelMap();
 51  
 
 52  
     /**
 53  
      * Returns the label for the associated key.
 54  
      *
 55  
      * @param key
 56  
      * @return
 57  
      */
 58  
     public String getKeyLabel(Object key);
 59  
     
 60  
    
 61  
     /**
 62  
      * Clears any internal cache that is being maintained by the value finder
 63  
      */
 64  
     public void clearInternalCache();
 65  
 
 66  
 }