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: * This is a JavaBean that has a single "value" property that can be used to
20: * map a single value for validation. For single-field validations, this
21: * JavaBean should be sufficient.
22: *
23: * @author Shellman, Dan
24: */
25: public class SimpleBean {
26: protected Object value;
27:
28: /**
29: * Default constructor.
30: */
31: public SimpleBean() {
32: }
33:
34: public Object getValue() {
35: return value;
36: }
37:
38: public void setValue(Object theValue) {
39: value = theValue;
40: }
41: }
|