Coverage Report - org.kuali.rice.core.api.component.ComponentContract
 
Classes in this File Line Coverage Branch Coverage Complexity
ComponentContract
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2006-2011 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  
 
 17  
 package org.kuali.rice.core.api.component;
 18  
 
 19  
 import org.kuali.rice.core.api.mo.common.GloballyUnique;
 20  
 import org.kuali.rice.core.api.mo.common.Versioned;
 21  
 import org.kuali.rice.core.api.mo.common.active.Inactivatable;
 22  
 
 23  
 /**
 24  
  * This is the contract for a Component.  This represents functional/logical piece
 25  
  * within a rice application or rice ecosystem.
 26  
  */
 27  
 public interface ComponentContract extends Versioned, GloballyUnique, Inactivatable {
 28  
 
 29  
     /**
 30  
      * This is the code value for the component.  It cannot be null or a blank string.
 31  
      * @return code
 32  
      */
 33  
     String getCode();
 34  
 
 35  
     /**
 36  
      * This is the name value for the component.  It cannot be null or a blank string.
 37  
      * @return name
 38  
      */
 39  
     String getName();
 40  
 
 41  
     /**
 42  
      * This is the namespace for the component.  It cannot be null or a blank string.
 43  
      * <p>
 44  
      * It is a way of assigning the component to a logical grouping within a rice application or rice ecosystem.
 45  
      * </p>
 46  
      *
 47  
      * @return namespace code
 48  
      */
 49  
     String getNamespaceCode();
 50  
 
 51  
     /**
 52  
      * Whether this is a virtual or derived component.
 53  
      * @return virtual
 54  
      */
 55  
     boolean isVirtual();
 56  
 
 57  
     /**
 58  
      * This the active flag for the Component.
 59  
      *
 60  
      * @return active
 61  
      */
 62  
     boolean isActive();
 63  
 
 64  
 
 65  
 }