001: package com.uwyn.rife.tools;
002:
003: import java.io.Serializable;
004: import java.math.BigDecimal;
005: import java.util.Date;
006:
007: public class BeanImpl2 {
008: private int mPropertyReadonly = 23;
009: private String mPropertyString = null;
010: private StringBuffer mPropertyStringbuffer = null;
011: private StringBuilder mPropertyStringbuilder = null;
012: private Date mPropertyDate = null;
013: private char mPropertyChar = 0;
014: private boolean mPropertyBoolean = false;
015: private byte mPropertyByte = 0;
016: private double mPropertyDouble = 0.0d;
017: private float mPropertyFloat = 0.0f;
018: private int mPropertyInt = 0;
019: private long mPropertyLong = 0;
020: private short mPropertyShort = 0;
021: private Character mPropertyCharacterObject = null;
022: private Boolean mPropertyBooleanObject = null;
023: private Byte mPropertyByteObject = null;
024: private Double mPropertyDoubleObject = null;
025: private Float mPropertyFloatObject = null;
026: private Integer mPropertyIntegerObject = null;
027: private Long mPropertyLongObject = null;
028: private Short mPropertyShortObject = null;
029: private BigDecimal mPropertyBigDecimal = null;
030: private SerializableType mPropertySerializableType = null;
031: private String[] mPropertyStringArray = null;
032: private StringBuffer[] mPropertyStringbufferArray = null;
033: private StringBuilder[] mPropertyStringbuilderArray = null;
034: private Date[] mPropertyDateArray = null;
035: private char[] mPropertyCharArray = null;
036: private boolean[] mPropertyBooleanArray = null;
037: private byte[] mPropertyByteArray = null;
038: private double[] mPropertyDoubleArray = null;
039: private float[] mPropertyFloatArray = null;
040: private int[] mPropertyIntArray = null;
041: private long[] mPropertyLongArray = null;
042: private short[] mPropertyShortArray = null;
043: private Character[] mPropertyCharacterObjectArray = null;
044: private Boolean[] mPropertyBooleanObjectArray = null;
045: private Byte[] mPropertyByteObjectArray = null;
046: private Double[] mPropertyDoubleObjectArray = null;
047: private Float[] mPropertyFloatObjectArray = null;
048: private Integer[] mPropertyIntegerObjectArray = null;
049: private Long[] mPropertyLongObjectArray = null;
050: private Short[] mPropertyShortObjectArray = null;
051: private BigDecimal[] mPropertyBigDecimalArray = null;
052: private SerializableType[] mPropertySerializableTypeArray = null;
053:
054: public BeanImpl2() {
055: }
056:
057: public int getPropertyReadonly() {
058: return mPropertyReadonly;
059: }
060:
061: public void setPropertyWriteonly(long propertyWriteonly) {
062: }
063:
064: public int getPropertyInt() {
065: return mPropertyInt;
066: }
067:
068: public void setPropertyInt(int propertyInt) {
069: mPropertyInt = propertyInt;
070: }
071:
072: public String getPropertyString() {
073: return mPropertyString;
074: }
075:
076: public void setPropertyString(String propertyString) {
077: mPropertyString = propertyString;
078: }
079:
080: public double getPropertyDouble() {
081: return mPropertyDouble;
082: }
083:
084: public void setPropertyDouble(double propertyDouble) {
085: mPropertyDouble = propertyDouble;
086: }
087:
088: public StringBuffer getPropertyStringbuffer() {
089: return mPropertyStringbuffer;
090: }
091:
092: public void setPropertyStringbuffer(
093: StringBuffer propertyStringbuffer) {
094: mPropertyStringbuffer = propertyStringbuffer;
095: }
096:
097: public StringBuilder getPropertyStringbuilder() {
098: return mPropertyStringbuilder;
099: }
100:
101: public void setPropertyStringbuilder(
102: StringBuilder propertyStringbuilder) {
103: mPropertyStringbuilder = propertyStringbuilder;
104: }
105:
106: public java.util.Date getPropertyDate() {
107: return mPropertyDate;
108: }
109:
110: public void setPropertyDate(java.util.Date propertyDate) {
111: mPropertyDate = propertyDate;
112: }
113:
114: public boolean isPropertyBoolean() {
115: return mPropertyBoolean;
116: }
117:
118: public void setPropertyBoolean(boolean propertyBoolean) {
119: mPropertyBoolean = propertyBoolean;
120: }
121:
122: public byte getPropertyByte() {
123: return mPropertyByte;
124: }
125:
126: public void setPropertyByte(byte propertyByte) {
127: mPropertyByte = propertyByte;
128: }
129:
130: public float getPropertyFloat() {
131: return mPropertyFloat;
132: }
133:
134: public void setPropertyFloat(float propertyFloat) {
135: mPropertyFloat = propertyFloat;
136: }
137:
138: public long getPropertyLong() {
139: return mPropertyLong;
140: }
141:
142: public void setPropertyLong(long propertyLong) {
143: mPropertyLong = propertyLong;
144: }
145:
146: public short getPropertyShort() {
147: return mPropertyShort;
148: }
149:
150: public void setPropertyShort(short propertyShort) {
151: mPropertyShort = propertyShort;
152: }
153:
154: public char getPropertyChar() {
155: return mPropertyChar;
156: }
157:
158: public void setPropertyChar(char propertyChar) {
159: mPropertyChar = propertyChar;
160: }
161:
162: public Short getPropertyShortObject() {
163: return mPropertyShortObject;
164: }
165:
166: public void setPropertyShortObject(Short propertyShortObject) {
167: mPropertyShortObject = propertyShortObject;
168: }
169:
170: public void setPropertyBigDecimal(BigDecimal propertyBigDecimal) {
171: mPropertyBigDecimal = propertyBigDecimal;
172: }
173:
174: public BigDecimal getPropertyBigDecimal() {
175: return mPropertyBigDecimal;
176: }
177:
178: public Character getPropertyCharacterObject() {
179: return mPropertyCharacterObject;
180: }
181:
182: public void setPropertyCharacterObject(
183: Character propertyCharacterObject) {
184: mPropertyCharacterObject = propertyCharacterObject;
185: }
186:
187: public Boolean getPropertyBooleanObject() {
188: return mPropertyBooleanObject;
189: }
190:
191: public void setPropertyBooleanObject(Boolean propertyBooleanObject) {
192: mPropertyBooleanObject = propertyBooleanObject;
193: }
194:
195: public Byte getPropertyByteObject() {
196: return mPropertyByteObject;
197: }
198:
199: public void setPropertyByteObject(Byte propertyByteObject) {
200: mPropertyByteObject = propertyByteObject;
201: }
202:
203: public Double getPropertyDoubleObject() {
204: return mPropertyDoubleObject;
205: }
206:
207: public void setPropertyDoubleObject(Double propertyDoubleObject) {
208: mPropertyDoubleObject = propertyDoubleObject;
209: }
210:
211: public Float getPropertyFloatObject() {
212: return mPropertyFloatObject;
213: }
214:
215: public void setPropertyFloatObject(Float propertyFloatObject) {
216: mPropertyFloatObject = propertyFloatObject;
217: }
218:
219: public Integer getPropertyIntegerObject() {
220: return mPropertyIntegerObject;
221: }
222:
223: public void setPropertyIntegerObject(Integer propertyIntegerObject) {
224: mPropertyIntegerObject = propertyIntegerObject;
225: }
226:
227: public Long getPropertyLongObject() {
228: return mPropertyLongObject;
229: }
230:
231: public void setPropertyLongObject(Long propertyLongObject) {
232: mPropertyLongObject = propertyLongObject;
233: }
234:
235: public SerializableType getPropertySerializableType() {
236: return mPropertySerializableType;
237: }
238:
239: public void setPropertySerializableType(
240: SerializableType propertySerializableType) {
241: mPropertySerializableType = propertySerializableType;
242: }
243:
244: public String[] getPropertyStringArray() {
245: return mPropertyStringArray;
246: }
247:
248: public void setPropertyStringArray(String[] propertyStringArray) {
249: mPropertyStringArray = propertyStringArray;
250: }
251:
252: public StringBuffer[] getPropertyStringbufferArray() {
253: return mPropertyStringbufferArray;
254: }
255:
256: public void setPropertyStringbufferArray(
257: StringBuffer[] propertyStringbufferArray) {
258: mPropertyStringbufferArray = propertyStringbufferArray;
259: }
260:
261: public StringBuilder[] getPropertyStringbuilderArray() {
262: return mPropertyStringbuilderArray;
263: }
264:
265: public void setPropertyStringbuilderArray(
266: StringBuilder[] propertyStringbuilderArray) {
267: mPropertyStringbuilderArray = propertyStringbuilderArray;
268: }
269:
270: public Date[] getPropertyDateArray() {
271: return mPropertyDateArray;
272: }
273:
274: public void setPropertyDateArray(Date[] propertyDateArray) {
275: mPropertyDateArray = propertyDateArray;
276: }
277:
278: public char[] getPropertyCharArray() {
279: return mPropertyCharArray;
280: }
281:
282: public void setPropertyCharArray(char[] propertyCharArray) {
283: mPropertyCharArray = propertyCharArray;
284: }
285:
286: public boolean[] getPropertyBooleanArray() {
287: return mPropertyBooleanArray;
288: }
289:
290: public void setPropertyBooleanArray(boolean[] propertyBooleanArray) {
291: mPropertyBooleanArray = propertyBooleanArray;
292: }
293:
294: public byte[] getPropertyByteArray() {
295: return mPropertyByteArray;
296: }
297:
298: public void setPropertyByteArray(byte[] propertyByteArray) {
299: mPropertyByteArray = propertyByteArray;
300: }
301:
302: public double[] getPropertyDoubleArray() {
303: return mPropertyDoubleArray;
304: }
305:
306: public void setPropertyDoubleArray(double[] propertyDoubleArray) {
307: mPropertyDoubleArray = propertyDoubleArray;
308: }
309:
310: public float[] getPropertyFloatArray() {
311: return mPropertyFloatArray;
312: }
313:
314: public void setPropertyFloatArray(float[] propertyFloatArray) {
315: mPropertyFloatArray = propertyFloatArray;
316: }
317:
318: public int[] getPropertyIntArray() {
319: return mPropertyIntArray;
320: }
321:
322: public void setPropertyIntArray(int[] propertyIntArray) {
323: mPropertyIntArray = propertyIntArray;
324: }
325:
326: public long[] getPropertyLongArray() {
327: return mPropertyLongArray;
328: }
329:
330: public void setPropertyLongArray(long[] propertyLongArray) {
331: mPropertyLongArray = propertyLongArray;
332: }
333:
334: public short[] getPropertyShortArray() {
335: return mPropertyShortArray;
336: }
337:
338: public void setPropertyShortArray(short[] propertyShortArray) {
339: mPropertyShortArray = propertyShortArray;
340: }
341:
342: public Character[] getPropertyCharacterObjectArray() {
343: return mPropertyCharacterObjectArray;
344: }
345:
346: public void setPropertyCharacterObjectArray(
347: Character[] propertyCharacterObjectArray) {
348: mPropertyCharacterObjectArray = propertyCharacterObjectArray;
349: }
350:
351: public Boolean[] getPropertyBooleanObjectArray() {
352: return mPropertyBooleanObjectArray;
353: }
354:
355: public void setPropertyBooleanObjectArray(
356: Boolean[] propertyBooleanObjectArray) {
357: mPropertyBooleanObjectArray = propertyBooleanObjectArray;
358: }
359:
360: public Byte[] getPropertyByteObjectArray() {
361: return mPropertyByteObjectArray;
362: }
363:
364: public void setPropertyByteObjectArray(
365: Byte[] propertyByteObjectArray) {
366: mPropertyByteObjectArray = propertyByteObjectArray;
367: }
368:
369: public Double[] getPropertyDoubleObjectArray() {
370: return mPropertyDoubleObjectArray;
371: }
372:
373: public void setPropertyDoubleObjectArray(
374: Double[] propertyDoubleObjectArray) {
375: mPropertyDoubleObjectArray = propertyDoubleObjectArray;
376: }
377:
378: public Float[] getPropertyFloatObjectArray() {
379: return mPropertyFloatObjectArray;
380: }
381:
382: public void setPropertyFloatObjectArray(
383: Float[] propertyFloatObjectArray) {
384: mPropertyFloatObjectArray = propertyFloatObjectArray;
385: }
386:
387: public Integer[] getPropertyIntegerObjectArray() {
388: return mPropertyIntegerObjectArray;
389: }
390:
391: public void setPropertyIntegerObjectArray(
392: Integer[] propertyIntegerObjectArray) {
393: mPropertyIntegerObjectArray = propertyIntegerObjectArray;
394: }
395:
396: public Long[] getPropertyLongObjectArray() {
397: return mPropertyLongObjectArray;
398: }
399:
400: public void setPropertyLongObjectArray(
401: Long[] propertyLongObjectArray) {
402: mPropertyLongObjectArray = propertyLongObjectArray;
403: }
404:
405: public Short[] getPropertyShortObjectArray() {
406: return mPropertyShortObjectArray;
407: }
408:
409: public void setPropertyShortObjectArray(
410: Short[] propertyShortObjectArray) {
411: mPropertyShortObjectArray = propertyShortObjectArray;
412: }
413:
414: public void setPropertyBigDecimalArray(
415: BigDecimal[] propertyBigDecimalArray) {
416: mPropertyBigDecimalArray = propertyBigDecimalArray;
417: }
418:
419: public BigDecimal[] getPropertyBigDecimalArray() {
420: return mPropertyBigDecimalArray;
421: }
422:
423: public SerializableType[] getPropertySerializableTypeArray() {
424: return mPropertySerializableTypeArray;
425: }
426:
427: public void setPropertySerializableTypeArray(
428: SerializableType[] propertySerializableTypeArray) {
429: mPropertySerializableTypeArray = propertySerializableTypeArray;
430: }
431:
432: public static class SerializableType implements Serializable {
433: private int mNumber = -1;
434: private String mString = null;
435:
436: public SerializableType(int number, String string) {
437: mNumber = number;
438: mString = string;
439: }
440:
441: public void setNumber(int number) {
442: mNumber = number;
443: }
444:
445: public int getNumber() {
446: return mNumber;
447: }
448:
449: public void setString(String string) {
450: mString = string;
451: }
452:
453: public String getString() {
454: return mString;
455: }
456:
457: public String toString() {
458: return mNumber + ":" + mString;
459: }
460:
461: public boolean equals(Object other) {
462: if (this == other) {
463: return true;
464: }
465:
466: if (null == other) {
467: return false;
468: }
469:
470: if (!(other instanceof SerializableType)) {
471: return false;
472: }
473:
474: SerializableType other_datalink = (SerializableType) other;
475: if (!other_datalink.getString().equals(getString())) {
476: return false;
477: }
478: if (other_datalink.getNumber() != getNumber()) {
479: return false;
480: }
481:
482: return true;
483: }
484: }
485: }
|