1 7 package com.inversoft.beans.test; 8 9 import java.util.HashMap ; 10 11 12 16 public class Bean1 extends SuperBean { 17 18 private Bean2 property1; 19 private Bean4 property4; 20 21 private Bean2[] array = new Bean2[1]; 22 private Object [] objectArray = new Object [1]; 23 private Bean2[][][] multiArray = new Bean2[1][2][3]; 24 private Object [][][] multiObjectArray = new Object [1][2][3]; 25 26 private String [] strArray = new String [3]; 27 private String readOnly = "readOnly"; 28 private String [] readOnlyIndexed = new String [] {"readOnly"}; 29 private String string1; 30 private Integer integer1; 31 private Integer [] integerIndexed = new Integer [] { new Integer (1) }; 32 private boolean boolean1; 33 private boolean[] booleanIndexed = new boolean[] {true}; 34 private byte byte1; 35 private char char1; 36 private double double1; 37 private float float1; 38 private int int1; 39 private int[] intIndexed = new int[] {1}; 40 private long long1; 41 private short short1; 42 private HashMap map; 43 44 45 46 public Bean2 getProperty1(){ 47 return property1; 48 } 49 50 51 public void setProperty1(Bean2 value) { 52 this.property1 = value; 53 } 54 55 56 public Bean4 getProperty4() { 57 return property4; 58 } 59 60 61 public void setProperty4(Bean4 value) { 62 property4 = value; 63 } 64 65 66 public Bean2 getIndexed(int index) { 67 if (index >= array.length) { 68 return null; 69 } 70 71 return array[index]; 72 } 73 74 75 public void setIndexed(int index, Bean2 value) { 76 array[index] = value; 77 } 78 79 public Bean2[] getSingleArray() { 80 return array; 81 } 82 83 public void setSingleArray(Bean2[] array) { 84 this.array = array; 85 } 86 87 public Object [] getSingleArrayObject() { 88 return objectArray; 89 } 90 91 public void setSingleArrayObject(Object [] objectArray) { 92 this.objectArray = objectArray; 93 } 94 95 public Bean2[][][] getMultiArray() { 96 return multiArray; 97 } 98 99 public void setMultiArray(Bean2[][][] multiArray) { 100 this.multiArray = multiArray; 101 } 102 103 public Object [][][] getMultiArrayObject() { 104 return multiObjectArray; 105 } 106 107 public void setMultiArrayObject(Object [][][] multiObjectArray) { 108 this.multiObjectArray = multiObjectArray; 109 } 110 111 112 public String getStringIndexed(int index) { 113 if (index >= strArray.length) { 114 return null; 115 } 116 117 return strArray[index]; 118 } 119 120 121 public void setStringIndexed(int index, String value) { 122 strArray[index] = value; 123 } 124 125 126 public String getReadOnly() { 127 return readOnly; 128 } 129 130 public String getReadOnlyIndexed(int index) { 131 return readOnlyIndexed[index]; 132 } 133 134 135 public String getString1() { 136 return string1; 137 } 138 139 140 public void setString1(String value) { 141 string1 = value; 142 } 143 144 145 public Integer getInteger1() { 146 return integer1; 147 } 148 149 150 public void setInteger1(Integer value) { 151 integer1 = value; 152 } 153 154 public Integer getIntegerIndexed(int index) { 155 return integerIndexed[index]; 156 } 157 158 public void setIntegerIndexed(int index, Integer integerIndexed) { 159 this.integerIndexed[index] = integerIndexed; 160 } 161 162 163 public boolean isBoolean1() { 164 return boolean1; 165 } 166 167 168 public void setBoolean1(boolean value) { 169 boolean1 = value; 170 } 171 172 173 public boolean isBooleanIndexed(int index) { 174 return booleanIndexed[index]; 175 } 176 177 178 public void setBooleanIndexed(int index, boolean value) { 179 booleanIndexed[index] = value; 180 } 181 182 183 public byte getByte1() { 184 return byte1; 185 } 186 187 188 public void setByte1(byte value) { 189 byte1 = value; 190 } 191 192 193 public char getChar1() { 194 return char1; 195 } 196 197 198 public void setChar1(char value) { 199 char1 = value; 200 } 201 202 203 public double getDouble1() { 204 return double1; 205 } 206 207 208 public void setDouble1(double value) { 209 double1 = value; 210 } 211 212 213 public float getFloat1() { 214 return float1; 215 } 216 217 218 public void setFloat1(float value) { 219 float1 = value; 220 } 221 222 223 public int getInt1() { 224 return int1; 225 } 226 227 228 public void setInt1(int value) { 229 int1 = value; 230 } 231 232 233 public int getIntIndexed(int index) { 234 return intIndexed[index]; 235 } 236 237 238 public void setIntIndexed(int index, int value) { 239 intIndexed[index] = value; 240 } 241 242 243 public long getLong1() { 244 return long1; 245 } 246 247 248 public void setLong1(long value) { 249 long1 = value; 250 } 251 252 253 public short getShort1() { 254 return short1; 255 } 256 257 258 public void setShort1(short value) { 259 short1 = value; 260 } 261 262 263 public String getThrowsAnException() throws TestException { 264 throw new TestException(); 265 } 266 267 268 public void setThrowsAnException(String value) throws TestException{ 269 throw new TestException(); 270 } 271 272 273 private String getNotAccessible() { 274 throw new NullPointerException (); 275 } 276 277 278 private void setNotAccessible(String value) { 279 throw new NullPointerException (); 280 } 281 282 283 public HashMap getHashMap() { 284 return map; 285 } 286 287 288 public void setHashMap(HashMap map) { 289 this.map = map; 290 } 291 292 293 public String get() { 294 return null; 295 } 296 297 298 public void set(String s) { 299 } 300 301 302 public boolean is() { 303 return false; 304 } 305 306 307 public String get(int index) { 308 return null; 309 } 310 311 312 public void set(int index, String s) { 313 } 314 315 316 public boolean is(int index) { 317 return false; 318 } 319 320 321 public void getBadProp() { 322 } 323 324 325 public String setBadProp(String s) { 326 return null; 327 } 328 329 330 public void isBadPropBool() { 331 } 332 333 334 public void getBadProp(int index) { 335 } 336 337 338 public String setBadProp(int index, String s) { 339 return null; 340 } 341 342 343 public void isBadPropBool(int index) { 344 } 345 346 public String notAProp() { 347 return null; 348 } 349 }
| Popular Tags
|