1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.portals.bridges.frameworks.spring;
18
19 import org.apache.portals.bridges.frameworks.model.ModelBean;
20
21
22 /***
23 * BeanModelImpl
24 *
25 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
26 * @version $Id: ModelBeanImpl.java 517068 2007-03-12 01:44:37Z ate $
27 */
28 public class ModelBeanImpl implements ModelBean
29 {
30
31 private String beanName;
32 private int beanType;
33 private boolean requiresExternalSupport = false;
34 private String lookupKey;
35
36 public ModelBeanImpl(String beanName, int beanType)
37 {
38 this.beanName = beanName;
39 this.beanType = beanType;
40 }
41
42 public ModelBeanImpl(String beanName, int beanType, String lookupKey, boolean requiresExternalSupport)
43 {
44 this.beanName = beanName;
45 this.beanType = beanType;
46 this.lookupKey = lookupKey;
47 this.requiresExternalSupport = requiresExternalSupport;
48 }
49
50
51
52
53 public String getBeanName()
54 {
55 return beanName;
56 }
57
58
59
60
61 public int getBeanType()
62 {
63 return beanType;
64 }
65
66 /***
67 * @return Returns the lookupKey.
68 */
69 public String getLookupKey()
70 {
71 return lookupKey;
72 }
73 /***
74 * @param lookupKey The lookupKey to set.
75 */
76 public void setLookupKey(String lookupKey)
77 {
78 this.lookupKey = lookupKey;
79 }
80 /***
81 * @return Returns the requiresExternalSupport.
82 */
83 public boolean isRequiresExternalSupport()
84 {
85 return requiresExternalSupport;
86 }
87 /***
88 * @param requiresExternalSupport The requiresExternalSupport to set.
89 */
90 public void setRequiresExternalSupport(boolean requiresExternalSupport)
91 {
92 this.requiresExternalSupport = requiresExternalSupport;
93 }
94
95 public boolean isRequiresLookup()
96 {
97 return (lookupKey!= null);
98 }
99
100 }