View Javadoc
1   /*
2    * Copyright 2008 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.ole.sys.businessobject;
17  
18  import java.util.LinkedHashMap;
19  
20  import org.kuali.rice.kns.datadictionary.BusinessObjectEntry;
21  import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
22  
23  public class BusinessObjectComponent extends TransientBusinessObjectBase {
24      private String namespaceCode;
25      private String componentClass;
26      private String componentLabel;
27      
28      public BusinessObjectComponent() {
29      }
30      
31      public BusinessObjectComponent(String namespaceCode, BusinessObjectEntry businessObjectEntry) {
32          setNamespaceCode(namespaceCode);
33          setComponentClass(businessObjectEntry.getBusinessObjectClass().getName());
34          setComponentLabel(businessObjectEntry.getObjectLabel());
35      }
36  
37      public String getNamespaceCode() {
38          return namespaceCode;
39      }
40  
41      public void setNamespaceCode(String namespaceCode) {
42          this.namespaceCode = namespaceCode;
43      }
44  
45      public String getComponentClass() {
46          return componentClass;
47      }
48  
49      public void setComponentClass(String componentClass) {
50          this.componentClass = componentClass;
51      }
52  
53      public String getComponentLabel() {
54          return componentLabel;
55      }
56  
57      public void setComponentLabel(String componentLabel) {
58          this.componentLabel = componentLabel;
59      }
60  
61      
62      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
63          LinkedHashMap<String, String> toString = new LinkedHashMap<String, String>();
64          toString.put("namespaceCode", getNamespaceCode());
65          toString.put("componentClass", getComponentClass());
66          return toString;
67      }
68  }