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