1 17 18 19 package org.apache.commons.digester; 20 21 22 28 29 public class TestBean { 30 31 32 34 35 38 private boolean booleanProperty = true; 39 40 public boolean getBooleanProperty() { 41 return (booleanProperty); 42 } 43 44 public void setBooleanProperty(boolean booleanProperty) { 45 this.booleanProperty = booleanProperty; 46 } 47 48 49 52 private double doubleProperty = 321.0; 53 54 public double getDoubleProperty() { 55 return (this.doubleProperty); 56 } 57 58 public void setDoubleProperty(double doubleProperty) { 59 this.doubleProperty = doubleProperty; 60 } 61 62 63 66 private boolean falseProperty = false; 67 68 public boolean getFalseProperty() { 69 return (falseProperty); 70 } 71 72 public void setFalseProperty(boolean falseProperty) { 73 this.falseProperty = falseProperty; 74 } 75 76 77 80 private float floatProperty = (float) 123.0; 81 82 public float getFloatProperty() { 83 return (this.floatProperty); 84 } 85 86 public void setFloatProperty(float floatProperty) { 87 this.floatProperty = floatProperty; 88 } 89 90 91 94 private int intArray[] = { 0, 10, 20, 30, 40 }; 95 96 public int[] getIntArray() { 97 return (this.intArray); 98 } 99 100 public void setIntArray(int intArray[]) { 101 this.intArray = intArray; 102 } 103 104 private int intIndexed[] = { 0, 10, 20, 30, 40 }; 105 106 public int getIntIndexed(int index) { 107 return (intIndexed[index]); 108 } 109 110 public void setIntIndexed(int index, int value) { 111 intIndexed[index] = value; 112 } 113 114 115 private int intMultibox[] = new int[0]; 116 117 public int[] getIntMultibox() { 118 return (this.intMultibox); 119 } 120 121 public void setIntMultibox(int intMultibox[]) { 122 this.intMultibox = intMultibox; 123 } 124 125 128 private int intProperty = 123; 129 130 public int getIntProperty() { 131 return (this.intProperty); 132 } 133 134 public void setIntProperty(int intProperty) { 135 this.intProperty = intProperty; 136 } 137 138 139 142 private long longProperty = 321; 143 144 public long getLongProperty() { 145 return (this.longProperty); 146 } 147 148 public void setLongProperty(long longProperty) { 149 this.longProperty = longProperty; 150 } 151 152 153 156 private String [] multipleSelect = { "Multiple 3", "Multiple 5", 157 "Multiple 7" }; 158 159 public String [] getMultipleSelect() { 160 return (this.multipleSelect); 161 } 162 163 public void setMultipleSelect(String multipleSelect[]) { 164 this.multipleSelect = multipleSelect; 165 } 166 167 168 171 private TestBean nested = null; 172 173 public TestBean getNested() { 174 if (nested == null) 175 nested = new TestBean(); 176 return (nested); 177 } 178 179 180 183 private String nullProperty = null; 184 185 public String getNullProperty() { 186 return (this.nullProperty); 187 } 188 189 public void setNullProperty(String nullProperty) { 190 this.nullProperty = nullProperty; 191 } 192 193 194 197 private short shortProperty = (short) 987; 198 199 public short getShortProperty() { 200 return (this.shortProperty); 201 } 202 203 public void setShortProperty(short shortProperty) { 204 this.shortProperty = shortProperty; 205 } 206 207 208 211 private String singleSelect = "Single 5"; 212 213 public String getSingleSelect() { 214 return (this.singleSelect); 215 } 216 217 public void setSingleSelect(String singleSelect) { 218 this.singleSelect = singleSelect; 219 } 220 221 222 225 private String stringArray[] = 226 { "String 0", "String 1", "String 2", "String 3", "String 4" }; 227 228 public String [] getStringArray() { 229 return (this.stringArray); 230 } 231 232 public void setStringArray(String stringArray[]) { 233 this.stringArray = stringArray; 234 } 235 236 private String stringIndexed[] = 237 { "String 0", "String 1", "String 2", "String 3", "String 4" }; 238 239 public String getStringIndexed(int index) { 240 return (stringIndexed[index]); 241 } 242 243 public void setStringIndexed(int index, String value) { 244 stringIndexed[index] = value; 245 } 246 247 248 251 private String stringProperty = "This is a string"; 252 253 public String getStringProperty() { 254 return (this.stringProperty); 255 } 256 257 public void setStringProperty(String stringProperty) { 258 this.stringProperty = stringProperty; 259 } 260 261 264 private String emptyStringProperty = ""; 265 266 public String getEmptyStringProperty() { 267 return (this.emptyStringProperty); 268 } 269 270 public void setEmptyStringProperty(String emptyStringProperty) { 271 this.emptyStringProperty = emptyStringProperty; 272 } 273 274 275 } 276 | Popular Tags |