001: /*
002: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
003: * Distributed under the terms of either:
004: * - the common development and distribution license (CDDL), v1.0; or
005: * - the GNU Lesser General Public License, v2.1 or later
006: * $Id: BeanImpl.java 3634 2007-01-08 21:42:24Z gbevin $
007: */
008: package com.uwyn.rife.engine.testelements.outputs;
009:
010: import com.uwyn.rife.site.ConstrainedProperty;
011: import com.uwyn.rife.site.Validation;
012: import java.util.ArrayList;
013:
014: public class BeanImpl extends Validation {
015: private String mString;
016: private StringBuffer mStringbuffer;
017: private int mInt;
018: private Integer mInteger;
019: private char mChar;
020: private Character mCharacter;
021: private boolean mBoolean;
022: private Boolean mBooleanObject;
023: private byte mByte;
024: private Byte mByteObject;
025: private double mDouble;
026: private Double mDoubleObject;
027: private float mFloat;
028: private Float mFloatObject;
029: private long mLong;
030: private Long mLongObject;
031: private short mShort;
032: private Short mShortObject;
033: private ArrayList mArrayList;
034:
035: public void activateValidation() {
036: addConstraint(new ConstrainedProperty("character")
037: .editable(false));
038: addConstraint(new ConstrainedProperty("byte").editable(false));
039: }
040:
041: public String getString() {
042: return mString;
043: }
044:
045: public void setString(String string) {
046: mString = string;
047: }
048:
049: public StringBuffer getStringbuffer() {
050: return mStringbuffer;
051: }
052:
053: public void setStringbuffer(StringBuffer stringbuffer) {
054: mStringbuffer = stringbuffer;
055: }
056:
057: public int getInt() {
058: return mInt;
059: }
060:
061: public void setInt(int anInt) {
062: mInt = anInt;
063: }
064:
065: public Integer getInteger() {
066: return mInteger;
067: }
068:
069: public void setInteger(Integer integer) {
070: mInteger = integer;
071: }
072:
073: public char getChar() {
074: return mChar;
075: }
076:
077: public void setChar(char aChar) {
078: mChar = aChar;
079: }
080:
081: public Character getCharacter() {
082: return mCharacter;
083: }
084:
085: public void setCharacter(Character character) {
086: mCharacter = character;
087: }
088:
089: public boolean isBoolean() {
090: return mBoolean;
091: }
092:
093: public void setBoolean(boolean aBoolean) {
094: mBoolean = aBoolean;
095: }
096:
097: public Boolean getBooleanObject() {
098: return mBooleanObject;
099: }
100:
101: public void setBooleanObject(Boolean aBooleanObject) {
102: mBooleanObject = aBooleanObject;
103: }
104:
105: public byte getByte() {
106: return mByte;
107: }
108:
109: public void setByte(byte aByte) {
110: mByte = aByte;
111: }
112:
113: public Byte getByteObject() {
114: return mByteObject;
115: }
116:
117: public void setByteObject(Byte byteObject) {
118: mByteObject = byteObject;
119: }
120:
121: public double getDouble() {
122: return mDouble;
123: }
124:
125: public void setDouble(double aDouble) {
126: mDouble = aDouble;
127: }
128:
129: public Double getDoubleObject() {
130: return mDoubleObject;
131: }
132:
133: public void setDoubleObject(Double doubleObject) {
134: mDoubleObject = doubleObject;
135: }
136:
137: public float getFloat() {
138: return mFloat;
139: }
140:
141: public void setFloat(float aFloat) {
142: mFloat = aFloat;
143: }
144:
145: public Float getFloatObject() {
146: return mFloatObject;
147: }
148:
149: public void setFloatObject(Float floatObject) {
150: mFloatObject = floatObject;
151: }
152:
153: public long getLong() {
154: return mLong;
155: }
156:
157: public void setLong(long aLong) {
158: mLong = aLong;
159: }
160:
161: public Long getLongObject() {
162: return mLongObject;
163: }
164:
165: public void setLongObject(Long longObject) {
166: mLongObject = longObject;
167: }
168:
169: public short getShort() {
170: return mShort;
171: }
172:
173: public void setShort(short aShort) {
174: mShort = aShort;
175: }
176:
177: public Short getShortObject() {
178: return mShortObject;
179: }
180:
181: public void setShortObject(Short shortObject) {
182: mShortObject = shortObject;
183: }
184:
185: public ArrayList getArrayList() {
186: return mArrayList;
187: }
188:
189: public void setArrayList(ArrayList arrayList) {
190: mArrayList = arrayList;
191: }
192:
193: public String toString() {
194: return "" + mString + ";" + mStringbuffer + ";" + mInt + ";"
195: + mInteger + ";" + mChar + ";" + mCharacter + ";"
196: + mBoolean + ";" + mBooleanObject + ";" + mByte + ";"
197: + mByteObject + ";" + mDouble + ";" + mDoubleObject
198: + ";" + mFloat + ";" + mFloatObject + ";" + mLong + ";"
199: + mLongObject + ";" + mShort + ";" + mShortObject + ";"
200: + mArrayList;
201: }
202: }
|