1 22 package org.jboss.test.mx.mxbean.support; 23 24 import java.math.BigDecimal ; 25 import java.math.BigInteger ; 26 import java.util.Date ; 27 28 import javax.management.ObjectName ; 29 30 import org.jboss.mx.mxbean.MXBeanSupport; 31 32 38 public class SimpleMXBeanSupport extends MXBeanSupport implements SimpleMXBeanSupportMXBean 39 { 40 private BigDecimal bigDecimal = bigDecimalValue; 41 private BigInteger bigInteger = bigIntegerValue; 42 private Boolean booleanV = booleanValue; 43 private Byte byteV = byteValue; 44 private Character characterV = characterValue; 45 private Date date = dateValue; 46 private Double doubleV = doubleValue; 47 private Float floatV = floatValue; 48 private Integer integer = integerValue; 49 private Long longV = longValue; 50 private ObjectName objectName = objectNameValue; 51 private boolean primitiveBoolean = primitiveBooleanValue; 52 private byte primitiveByte = primitiveByteValue; 53 private char primitiveChar = primitiveCharValue; 54 private double primitiveDouble = primitiveDoubleValue; 55 private float primitiveFloat = primitiveFloatValue; 56 private int primitiveInt = primitiveIntValue; 57 private long primitiveLong = primitiveLongValue; 58 private Short shortV = shortValue; 59 private short primitiveShort = primitiveShortValue; 60 private String string = stringValue; 61 62 public BigDecimal getBigDecimal() 63 { 64 return bigDecimal; 65 } 66 67 public BigInteger getBigInteger() 68 { 69 return bigInteger; 70 } 71 72 public Boolean getBoolean() 73 { 74 return booleanV; 75 } 76 77 public Byte getByte() 78 { 79 return byteV; 80 } 81 82 public Character getCharacter() 83 { 84 return characterV; 85 } 86 87 public Date getDate() 88 { 89 return date; 90 } 91 92 public Double getDouble() 93 { 94 return doubleV; 95 } 96 97 public Float getFloat() 98 { 99 return floatV; 100 } 101 102 public Integer getInteger() 103 { 104 return integer; 105 } 106 107 public Long getLong() 108 { 109 return longV; 110 } 111 112 public ObjectName getObjectName() 113 { 114 return objectName; 115 } 116 117 public byte getPrimitiveByte() 118 { 119 return primitiveByte; 120 } 121 122 public char getPrimitiveChar() 123 { 124 return primitiveChar; 125 } 126 127 public double getPrimitiveDouble() 128 { 129 return primitiveDouble; 130 } 131 132 public float getPrimitiveFloat() 133 { 134 return primitiveFloat; 135 } 136 137 public int getPrimitiveInt() 138 { 139 return primitiveInt; 140 } 141 142 public long getPrimitiveLong() 143 { 144 return primitiveLong; 145 } 146 147 public short getPrimitiveShort() 148 { 149 return primitiveShort; 150 } 151 152 public Short getShort() 153 { 154 return shortV; 155 } 156 157 public String getString() 158 { 159 return string; 160 } 161 162 public boolean isPrimitiveBoolean() 163 { 164 return primitiveBoolean; 165 } 166 167 public void setBoolean(Boolean booleanV) 168 { 169 this.booleanV = booleanV; 170 } 171 172 public void setByte(Byte byteV) 173 { 174 this.byteV = byteV; 175 } 176 177 public void setCharacter(Character characterV) 178 { 179 this.characterV = characterV; 180 } 181 182 public void setDouble(Double doubleV) 183 { 184 this.doubleV = doubleV; 185 } 186 187 public void setFloat(Float floatV) 188 { 189 this.floatV = floatV; 190 } 191 192 public void setLong(Long longV) 193 { 194 this.longV = longV; 195 } 196 197 public void setShort(Short shortV) 198 { 199 this.shortV = shortV; 200 } 201 202 public void setBigDecimal(BigDecimal bigDecimal) 203 { 204 this.bigDecimal = bigDecimal; 205 } 206 207 public void setBigInteger(BigInteger bigInteger) 208 { 209 this.bigInteger = bigInteger; 210 } 211 212 public void setDate(Date date) 213 { 214 this.date = date; 215 } 216 217 public void setInteger(Integer integer) 218 { 219 this.integer = integer; 220 } 221 222 public void setObjectName(ObjectName objectName) 223 { 224 this.objectName = objectName; 225 } 226 227 public void setPrimitiveBoolean(boolean primitiveBoolean) 228 { 229 this.primitiveBoolean = primitiveBoolean; 230 } 231 232 public void setPrimitiveByte(byte primitiveByte) 233 { 234 this.primitiveByte = primitiveByte; 235 } 236 237 public void setPrimitiveChar(char primitiveChar) 238 { 239 this.primitiveChar = primitiveChar; 240 } 241 242 public void setPrimitiveDouble(double primitiveDouble) 243 { 244 this.primitiveDouble = primitiveDouble; 245 } 246 247 public void setPrimitiveFloat(float primitiveFloat) 248 { 249 this.primitiveFloat = primitiveFloat; 250 } 251 252 public void setPrimitiveInt(int primitiveInt) 253 { 254 this.primitiveInt = primitiveInt; 255 } 256 257 public void setPrimitiveLong(long primitiveLong) 258 { 259 this.primitiveLong = primitiveLong; 260 } 261 262 public void setPrimitiveShort(short primitiveShort) 263 { 264 this.primitiveShort = primitiveShort; 265 } 266 267 public void setString(String string) 268 { 269 this.string = string; 270 } 271 272 public String echoReverse(String string) 273 { 274 StringBuilder builder = new StringBuilder (string); 275 builder.reverse(); 276 return builder.toString(); 277 } 278 } 279 | Popular Tags |