1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }