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