01: /*
02: * Copyright 2005-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
05: * in compliance with the License. You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software distributed under the License
10: * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11: * or implied. See the License for the specific language governing permissions and limitations under
12: * the License.
13: */
14:
15: package org.strecks.converter;
16:
17: import java.util.Date;
18:
19: import org.strecks.bind.annotation.BindSimple;
20:
21: /**
22: * @author Phil Zoio
23: */
24: public class BindableBean {
25:
26: private NestedBindableBean nestedBindableBean;
27:
28: private Date dateValueTarget;
29:
30: public NestedBindableBean getNestedBindableBean() {
31: return nestedBindableBean;
32: }
33:
34: public void setNestedBindableBean(
35: NestedBindableBean nestedBindableBean) {
36: this .nestedBindableBean = nestedBindableBean;
37: }
38:
39: private String integerValue;
40:
41: private String dateValue;
42:
43: private Boolean booleanValue;
44:
45: private boolean boolValue;
46:
47: public Date getDateValueTarget() {
48: return dateValueTarget;
49: }
50:
51: public void setDateValueTarget(Date dateValueTarget) {
52: this .dateValueTarget = dateValueTarget;
53: }
54:
55: public void setIntegerValue(String integerValue) {
56: this .integerValue = integerValue;
57: }
58:
59: public void setDateValue(String dateValue) {
60: this .dateValue = dateValue;
61: }
62:
63: @BindSimple(expression="dateValueTarget")
64: public String getDateValue() {
65: return dateValue;
66: }
67:
68: @BindSimple(expression="nestedBindableBean.integerValue")
69: public String getIntegerValue() {
70: return integerValue;
71: }
72:
73: public Boolean getBooleanValue() {
74: return booleanValue;
75: }
76:
77: public void setBooleanValue(Boolean booleanValue) {
78: this .booleanValue = booleanValue;
79: }
80:
81: public boolean isBoolValue() {
82: return boolValue;
83: }
84:
85: public boolean getBoolValue() {
86: return boolValue;
87: }
88:
89: public void setBoolValue(boolean boolValue) {
90: this.boolValue = boolValue;
91: }
92:
93: }
|