1   /*
2    * Copyright 2002-2007 the original author or authors.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5    * use this file except in compliance with the License. You may obtain a copy of
6    * the License at
7    * 
8    * http://www.apache.org/licenses/LICENSE-2.0
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, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations under
14   * the License.
15   */
16  package org.springframework.richclient.test;
17  
18  import java.util.List;
19  import java.util.Map;
20  import java.util.Date;
21  
22  /**
23   * @author Oliver Hutchison
24   * @author Geoffrey De Smet
25   */
26  public class TestBean {
27  
28      private String simpleProperty;
29  
30      private Date dateProperty;
31  
32      public TestLabeledEnum enumProperty;
33  
34      private Map mapProperty;
35  
36      private List listProperty;
37  
38      private Object[] arrayProperty;
39  
40      private Object singleSelectListProperty;
41  
42      private TestBean nestedProperty;
43  
44      public Object readOnly;
45  
46      public Object writeOnly;
47  
48      public Number numberProperty;
49      
50      private boolean booleanProperty;
51  
52      public Number getNumberProperty() {
53          return numberProperty;
54      }
55  
56      public void setNumberProperty(Number numberProperty) {
57          this.numberProperty = numberProperty;
58      }
59  
60      public String getSimpleProperty() {
61          return simpleProperty;
62      }
63  
64      public void setSimpleProperty(String simpleProperty) {
65          this.simpleProperty = simpleProperty;
66      }
67  
68      public Date getDateProperty() {
69          return dateProperty;
70      }
71  
72      public void setDateProperty(Date dateProperty) {
73          this.dateProperty = dateProperty;
74      }
75  
76      public TestLabeledEnum getEnumProperty() {
77          return enumProperty;
78      }
79  
80      public void setEnumProperty(TestLabeledEnum enumProperty) {
81          this.enumProperty = enumProperty;
82      }
83  
84      public Map getMapProperty() {
85          return mapProperty;
86      }
87  
88      public void setMapProperty(Map mapProperty) {
89          this.mapProperty = mapProperty;
90      }
91  
92      public List getListProperty() {
93          return listProperty;
94      }
95  
96      public void setListProperty(List listProperty) {
97          this.listProperty = listProperty;
98      }
99  
100     public Object getSingleSelectListProperty() {
101         return singleSelectListProperty;
102     }
103 
104     public void setSingleSelectListProperty(final Object singleSelectListProperty) {
105         this.singleSelectListProperty = singleSelectListProperty;
106     }
107 
108     public TestBean getNestedProperty() {
109         return nestedProperty;
110     }
111 
112     public void setNestedProperty(TestBean nestedProperty) {
113         this.nestedProperty = nestedProperty;
114     }
115 
116     public Object getReadOnly() {
117         return readOnly;
118     }
119 
120     public void setWriteOnly(Object writeOnly) {
121         this.writeOnly = writeOnly;
122     }
123 
124     public Object[] getArrayProperty() {
125         return arrayProperty;
126     }
127 
128     public void setArrayProperty(Object[] arrayProperty) {
129         this.arrayProperty = arrayProperty;
130     }
131 
132     public boolean isBooleanProperty() {
133         return booleanProperty;
134     }
135 
136     public void setBooleanProperty(boolean booleanProperty) {
137         this.booleanProperty = booleanProperty;
138     }
139 
140 }