1 /**
2 * Copyright 2005-2014 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.krad.datadictionary;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
19
20 /**
21 * Common base for all objects that can be configured in the dictionary
22 *
23 * @author Kuali Rice Team (rice.collab@kuali.org)
24 */
25 public abstract class DictionaryBeanBase implements DictionaryBean {
26
27 private String namespaceCode;
28 private String componentCode;
29
30 public DictionaryBeanBase() {
31
32 }
33
34 /**
35 * @see DictionaryBean#getNamespaceCode()
36 */
37 @BeanTagAttribute(name = "namespaceCode")
38 public String getNamespaceCode() {
39 return namespaceCode;
40 }
41
42 /**
43 * Setter for the bean's associated namespace code
44 *
45 * @param namespaceCode
46 */
47 public void setNamespaceCode(String namespaceCode) {
48 this.namespaceCode = namespaceCode;
49 }
50
51 /**
52 * @see DictionaryBean#getComponentCode()
53 */
54 @BeanTagAttribute(name = "componentCode")
55 public String getComponentCode() {
56 return componentCode;
57 }
58
59 /**
60 * Setter for the bean's associated component code
61 *
62 * @param componentCode
63 */
64 public void setComponentCode(String componentCode) {
65 this.componentCode = componentCode;
66 }
67 }