01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: BeanImpl.java 3714 2007-04-08 02:57:38Z gbevin $
07: */
08: package com.uwyn.rife.template;
09:
10: import com.uwyn.rife.config.RifeConfig;
11: import java.util.Calendar;
12: import java.util.Date;
13:
14: public class BeanImpl {
15: private int mPropertyInt = 34876;
16: private String mPropertyString = "oifuigygti";
17: private StringBuffer mPropertyStringBuffer = new StringBuffer(
18: "osduhbfezgb");
19: private long mPropertyLong = 982787834L;
20: private char mPropertyChar = 'O';
21: private short mPropertyShort = 423;
22: private byte mPropertyByte = (byte) 92;
23: private Date mPropertyDate;
24:
25: public BeanImpl() {
26: Calendar cal = Calendar.getInstance();
27: cal.setTimeZone(RifeConfig.Tools.getDefaultTimeZone());
28: cal.set(2005, 7, 18, 10, 36, 31);
29: cal.set(Calendar.MILLISECOND, 874);
30: mPropertyDate = cal.getTime();
31: }
32:
33: public void setPropertyInt(int propertyInt) {
34: this .mPropertyInt = propertyInt;
35: }
36:
37: public int getPropertyInt() {
38: return mPropertyInt;
39: }
40:
41: public void setPropertyString(String propertyString) {
42: this .mPropertyString = propertyString;
43: }
44:
45: public String getPropertyString() {
46: return mPropertyString;
47: }
48:
49: public void setPropertyStringBuffer(
50: StringBuffer propertyStringBuffer) {
51: this .mPropertyStringBuffer = propertyStringBuffer;
52: }
53:
54: public StringBuffer getPropertyStringBuffer() {
55: return mPropertyStringBuffer;
56: }
57:
58: public void setPropertyLong(long propertyLong) {
59: this .mPropertyLong = propertyLong;
60: }
61:
62: public long getPropertyLong() {
63: return mPropertyLong;
64: }
65:
66: public void setPropertyChar(char propertyChar) {
67: this .mPropertyChar = propertyChar;
68: }
69:
70: public char getPropertyChar() {
71: return mPropertyChar;
72: }
73:
74: public void setPropertyShort(short propertyShort) {
75: this .mPropertyShort = propertyShort;
76: }
77:
78: public short getPropertyShort() {
79: return mPropertyShort;
80: }
81:
82: public void setPropertyByte(byte propertyByte) {
83: this .mPropertyByte = propertyByte;
84: }
85:
86: public byte getPropertyByte() {
87: return mPropertyByte;
88: }
89:
90: public void setPropertyDate(Date propertyDate) {
91: mPropertyDate = propertyDate;
92: }
93:
94: public Date getPropertyDate() {
95: return mPropertyDate;
96: }
97: }
|