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.inputs;
009:
010: import com.uwyn.rife.site.ConstrainedProperty;
011: import com.uwyn.rife.site.Validation;
012:
013: public class BeanImpl extends Validation {
014: private String mString;
015: private StringBuffer mStringbuffer;
016: private int mInt;
017: private Integer mInteger;
018: private char mChar;
019: private Character mCharacter;
020: private boolean mBoolean;
021: private Boolean mBooleanObject;
022: private byte mByte;
023: private Byte mByteObject;
024: private double mDouble;
025: private Double mDoubleObject;
026: private float mFloat;
027: private Float mFloatObject;
028: private long mLong;
029: private Long mLongObject;
030: private short mShort;
031: private Short mShortObject;
032:
033: public void activateValidation() {
034: addConstraint(new ConstrainedProperty("character")
035: .editable(false));
036: addConstraint(new ConstrainedProperty("byte").editable(false));
037: }
038:
039: public String getString() {
040: return mString;
041: }
042:
043: public void setString(String string) {
044: mString = string;
045: }
046:
047: public StringBuffer getStringbuffer() {
048: return mStringbuffer;
049: }
050:
051: public void setStringbuffer(StringBuffer stringbuffer) {
052: mStringbuffer = stringbuffer;
053: }
054:
055: public int getInt() {
056: return mInt;
057: }
058:
059: public void setInt(int anInt) {
060: mInt = anInt;
061: }
062:
063: public Integer getInteger() {
064: return mInteger;
065: }
066:
067: public void setInteger(Integer integer) {
068: mInteger = integer;
069: }
070:
071: public char getChar() {
072: return mChar;
073: }
074:
075: public void setChar(char aChar) {
076: mChar = aChar;
077: }
078:
079: public Character getCharacter() {
080: return mCharacter;
081: }
082:
083: public void setCharacter(Character character) {
084: mCharacter = character;
085: }
086:
087: public boolean isBoolean() {
088: return mBoolean;
089: }
090:
091: public void setBoolean(boolean aBoolean) {
092: mBoolean = aBoolean;
093: }
094:
095: public Boolean getBooleanObject() {
096: return mBooleanObject;
097: }
098:
099: public void setBooleanObject(Boolean aBooleanObject) {
100: mBooleanObject = aBooleanObject;
101: }
102:
103: public byte getByte() {
104: return mByte;
105: }
106:
107: public void setByte(byte aByte) {
108: mByte = aByte;
109: }
110:
111: public Byte getByteObject() {
112: return mByteObject;
113: }
114:
115: public void setByteObject(Byte byteObject) {
116: mByteObject = byteObject;
117: }
118:
119: public double getDouble() {
120: return mDouble;
121: }
122:
123: public void setDouble(double aDouble) {
124: mDouble = aDouble;
125: }
126:
127: public Double getDoubleObject() {
128: return mDoubleObject;
129: }
130:
131: public void setDoubleObject(Double doubleObject) {
132: mDoubleObject = doubleObject;
133: }
134:
135: public float getFloat() {
136: return mFloat;
137: }
138:
139: public void setFloat(float aFloat) {
140: mFloat = aFloat;
141: }
142:
143: public Float getFloatObject() {
144: return mFloatObject;
145: }
146:
147: public void setFloatObject(Float floatObject) {
148: mFloatObject = floatObject;
149: }
150:
151: public long getLong() {
152: return mLong;
153: }
154:
155: public void setLong(long aLong) {
156: mLong = aLong;
157: }
158:
159: public Long getLongObject() {
160: return mLongObject;
161: }
162:
163: public void setLongObject(Long longObject) {
164: mLongObject = longObject;
165: }
166:
167: public short getShort() {
168: return mShort;
169: }
170:
171: public void setShort(short aShort) {
172: mShort = aShort;
173: }
174:
175: public Short getShortObject() {
176: return mShortObject;
177: }
178:
179: public void setShortObject(Short shortObject) {
180: mShortObject = shortObject;
181: }
182: }
|