1 18 19 package org.apache.struts.taglib; 20 21 import java.util.Collection ; 22 import java.util.Enumeration ; 23 import java.util.List ; 24 import java.util.Map ; 25 26 import org.apache.struts.action.ActionForm; 27 28 32 public class SimpleBeanForTesting extends ActionForm { 33 public SimpleBeanForTesting() { 34 super(); 35 } 36 public SimpleBeanForTesting(List lst) { 37 this.lst = lst; 38 } 39 public SimpleBeanForTesting(boolean checked) { 40 this.checked = checked; 41 } 42 public SimpleBeanForTesting(Boolean checkedWrapper) { 43 this.checkedWrapper = checkedWrapper; 44 } 45 public SimpleBeanForTesting(Map map) { 46 this.map = map; 47 } 48 public SimpleBeanForTesting(String string) { 49 this.string = string; 50 } 51 public SimpleBeanForTesting(String [] stringArray) { 52 this.stringArray = stringArray; 53 } 54 public SimpleBeanForTesting(Integer integerValue) { 55 this.integerValue = integerValue; 56 } 57 58 private String string; 59 private String [] stringArray; 60 private Integer integerValue; 61 private Double doubleValue; 62 private List lst; 63 private Map map; 64 private String x; 65 private String y; 66 private Object nestedObject; 67 private Object [] array; 68 private Enumeration enumeration; 69 private Collection collection; 70 private boolean checked; 71 private Boolean checkedWrapper; 72 73 private String strAry[] = 75 { "String 0", "String 1", "String 2", "String 3", "String 4" }; 76 77 public String getStringIndexed(int index) { 78 return (strAry[index]); 79 } 80 public void setStringIndexed(int index, String value) { 81 strAry[index] = value; 82 } 83 84 88 public List getList() { 89 return lst; 90 } 91 92 96 public Map getMap() { 97 return map; 98 } 99 100 104 public void setList(List lst) { 105 this.lst = lst; 106 } 107 108 112 public void setMap(Map map) { 113 this.map = map; 114 } 115 116 120 public String getString() { 121 return string; 122 } 123 124 128 public void setString(String string) { 129 this.string = string; 130 } 131 132 136 public String [] getStringArray() { 137 return stringArray; 138 } 139 140 144 public void setStringArray(String [] stringArray) { 145 this.stringArray = stringArray; 146 } 147 148 152 public List getLst() { 153 return lst; 154 } 155 156 160 public void setLst(List lst) { 161 this.lst = lst; 162 } 163 164 168 public Object [] getArray() { 169 return array; 170 } 171 172 176 public void setArray(Object [] array) { 177 this.array = array; 178 } 179 180 184 public Enumeration getEnumeration() { 185 return enumeration; 186 } 187 188 192 public void setEnumeration(Enumeration enumeration) { 193 this.enumeration = enumeration; 194 } 195 196 200 public Object getNestedObject() { 201 return nestedObject; 202 } 203 204 208 public void setNestedObject(Object nestedObject) { 209 this.nestedObject = nestedObject; 210 } 211 212 216 public Collection getCollection() { 217 return collection; 218 } 219 220 224 public void setCollection(Collection collection) { 225 this.collection = collection; 226 } 227 228 232 public Double getDoubleValue() { 233 return doubleValue; 234 } 235 236 240 public Integer getIntegerValue() { 241 return integerValue; 242 } 243 244 248 public void setDoubleValue(Double doubleValue) { 249 this.doubleValue = doubleValue; 250 } 251 252 256 public void setIntegerValue(Integer integerValue) { 257 this.integerValue = integerValue; 258 } 259 260 264 public boolean isChecked() { 265 return checked; 266 } 267 268 272 public void setChecked(boolean checked) { 273 this.checked = checked; 274 } 275 276 280 public Boolean getCheckedWrapper() { 281 return checkedWrapper; 282 } 283 284 288 public void setCheckedWrapper(Boolean checkedWrapper) { 289 this.checkedWrapper = checkedWrapper; 290 } 291 292 296 public String getX() { 297 return x; 298 } 299 300 304 public String getY() { 305 return y; 306 } 307 308 312 public void setX(String x) { 313 this.x = x; 314 } 315 316 320 public void setY(String y) { 321 this.y = y; 322 } 323 324 } 325 | Popular Tags |