01: /*
02: * Copyright 2006 Dan Shellman
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.iscreen;
17:
18: /**
19: * A sample JavaBean to use for testing validation configurations
20: *
21: * @author Shellman, Dan
22: */
23: public class MockBean {
24: protected boolean someFlag;
25: protected String someString;
26: protected Object someObject;
27:
28: /**
29: * Default constructor.
30: */
31: public MockBean() {
32: } //end MockBean()
33:
34: public void setSomeFlag(boolean flag) {
35: someFlag = flag;
36: } //end setSomeFlag()
37:
38: public boolean getSomeFlag() {
39: return someFlag;
40: } //end getSomeFlag()
41:
42: public void setSomeString(String str) {
43: someString = str;
44: } //end setSomeString()
45:
46: public String getSomeString() {
47: return someString;
48: } //end getSomeString()
49:
50: public void setSomeObject(Object obj) {
51: someObject = obj;
52: } //end setSomeObject()
53:
54: public Object getSomeObject() {
55: return someObject;
56: } //end getSomeObject()
57: } //end MockBean
|