Coverage Report - org.kuali.student.r2.core.enumerationmanagement.infc.EnumeratedValue
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumeratedValue
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.core.enumerationmanagement.infc;
 17  
 
 18  
 import org.kuali.student.r2.common.infc.HasEffectiveDates;
 19  
 import org.kuali.student.r2.common.infc.HasMeta;
 20  
 
 21  
 import java.util.List;
 22  
 
 23  
 /**
 24  
  * Descriptive information about an enumeration, including field constraints and
 25  
  * supported contexts.
 26  
  *
 27  
  * @Version 2.0
 28  
  * @Author Sri komandur@uw.edu
 29  
  */
 30  
 public interface EnumeratedValue extends HasEffectiveDates, HasMeta {
 31  
     /**
 32  
      * Typically coincides with a code representation. Likely the key if this is
 33  
      * a reference to another object.
 34  
      *
 35  
      * @name Code
 36  
      */
 37  
     String getCode();
 38  
 
 39  
     /**
 40  
      * Typically coincides with a shortened name. May be equal to the code or
 41  
      * value fields.
 42  
      *
 43  
      * @name Abbrev Value
 44  
      */
 45  
     String getAbbrevValue();
 46  
 
 47  
     /**
 48  
      * Typically coincides with a name for display.
 49  
      *
 50  
      * @name Value
 51  
      */
 52  
     String getValue();
 53  
 
 54  
     /**
 55  
      * Default position for the enumerated value. This might or might not exist,
 56  
      * particularly in cases where the enumeration consists solely of a view.
 57  
      *
 58  
      * @name Sort Key
 59  
      */
 60  
     String getSortKey();
 61  
 
 62  
     /**
 63  
      * Indicates which context types and values this particular enumerated value
 64  
      * participates in.
 65  
      *
 66  
      * @name Contexts
 67  
      */
 68  
     List<? extends EnumContextValue> getContexts();
 69  
 
 70  
     /**
 71  
      * Identifier for the enumeration
 72  
      *
 73  
      * @name Enumeration Key
 74  
      */
 75  
     String getEnumerationKey();
 76  
 }