001 /*
002 * Copyright 2002-2004 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
005 * use this file except in compliance with the License. You may obtain a copy of
006 * the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
013 * License for the specific language governing permissions and limitations under
014 * the License.
015 */
016 package org.springframework.binding.support;
017
018 import java.util.List;
019 import java.util.Map;
020 import java.util.Date;
021
022 /**
023 * @author Oliver Hutchison
024 * @author Geoffrey De Smet
025 */
026 public class TestBean {
027
028 private String simpleProperty;
029
030 private Date dateProperty;
031
032 public TestLabeledEnum enumProperty;
033
034 private Map mapProperty;
035
036 private List listProperty;
037
038 private Object[] arrayProperty;
039
040 private Object singleSelectListProperty;
041
042 private TestBean nestedProperty;
043
044 public Object readOnly;
045
046 public Object writeOnly;
047
048 public Number numberProperty;
049
050 private boolean booleanProperty;
051
052 public Number getNumberProperty() {
053 return numberProperty;
054 }
055
056 public void setNumberProperty(Number numberProperty) {
057 this.numberProperty = numberProperty;
058 }
059
060 public String getSimpleProperty() {
061 return simpleProperty;
062 }
063
064 public void setSimpleProperty(String simpleProperty) {
065 this.simpleProperty = simpleProperty;
066 }
067
068 public Date getDateProperty() {
069 return dateProperty;
070 }
071
072 public void setDateProperty(Date dateProperty) {
073 this.dateProperty = dateProperty;
074 }
075
076 public TestLabeledEnum getEnumProperty() {
077 return enumProperty;
078 }
079
080 public void setEnumProperty(TestLabeledEnum enumProperty) {
081 this.enumProperty = enumProperty;
082 }
083
084 public Map getMapProperty() {
085 return mapProperty;
086 }
087
088 public void setMapProperty(Map mapProperty) {
089 this.mapProperty = mapProperty;
090 }
091
092 public List getListProperty() {
093 return listProperty;
094 }
095
096 public void setListProperty(List listProperty) {
097 this.listProperty = listProperty;
098 }
099
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 }