1 7 package com.inversoft.verge.util.test; 8 9 10 15 public class Bean1 { 16 17 private Bean2 property1; 18 private Bean4 property4; 19 private Bean2 [] array = new Bean2[1]; 20 private String string1; 21 22 23 24 public Bean2 getProperty1(){ 25 return property1; 26 } 27 28 29 public void setProperty1(Bean2 value) { 30 this.property1 = value; 31 } 32 33 34 public Bean4 getProperty4() { 35 return property4; 36 } 37 38 39 public void setProperty4(Bean4 value) { 40 property4 = value; 41 } 42 43 44 public Bean2 getIndexed(int index) { 45 if (index >= array.length) { 46 return null; 47 } 48 49 return array[index]; 50 } 51 52 53 public void setIndexed(int index, Bean2 value) { 54 array[index] = value; 55 } 56 57 58 public String getString1() { 59 return string1; 60 } 61 62 63 public void setString1(String value) { 64 string1 = value; 65 } 66 } 67 | Popular Tags |