1 /*
2 * Copyright 2009 minuteFForts
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
6 * the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16 package com.minutefforts.aspects.property.support;
17
18 /**
19 * A sample class with bound properties for testing purposes.
20 *
21 * @author Hans-Joachim Belz
22 */
23 @SupportBoundProperties
24 public class SampleBoundPropertyBean {
25
26 private int id = -1;
27
28 private Float amount;
29
30 private String description = "";
31
32 private String internalValue;
33
34 private boolean isValid;
35
36 private boolean someFlag;
37
38
39 /**
40 * @return the amount
41 */
42 public Float getAmount() {
43
44 return this.amount;
45 }
46
47
48 /**
49 * @param amount the amount to set
50 */
51 public void setAmount(Float amount) {
52
53 this.amount = amount;
54 }
55
56
57 /**
58 * @return the description
59 */
60 public String getDescription() {
61
62 return this.description;
63 }
64
65
66 /**
67 * @param description the description to set
68 */
69 public void setDescription(String description) {
70
71 this.description = description;
72 }
73
74
75 /**
76 * Returns the id.
77 *
78 * @return the id
79 */
80 public int getId() {
81
82 return this.id;
83 }
84
85
86 /**
87 * Sets the id.
88 *
89 * @param id the id to set
90 */
91 public void setId(int id) {
92
93 this.id = id;
94 }
95
96
97 /**
98 * Returns the internalValue.
99 *
100 * @return the internalValue
101 */
102 public String getInternalValue() {
103
104 return this.internalValue;
105 }
106
107
108 /**
109 * Sets the internalValue.
110 *
111 * @param internalValue the internalValue to set
112 */
113 @UnboundProperty
114 public void setInternalValue(String internalValue) {
115
116 this.internalValue = internalValue;
117 }
118
119
120 /**
121 * Returns the isValid.
122 *
123 * @return the isValid
124 */
125 public boolean isValid() {
126
127 return this.isValid;
128 }
129
130
131 /**
132 * Sets the isValid.
133 *
134 * @param isValid the isValid to set
135 */
136 public void setValid(boolean isValid) {
137
138 this.isValid = isValid;
139 }
140
141
142 /**
143 * Returns the someFlag.
144 *
145 * @return the someFlag
146 */
147 public boolean getIsSomeFlag() {
148
149 return this.someFlag;
150 }
151
152
153 /**
154 * Sets the someFlag.
155 *
156 * @param someFlag the someFlag to set
157 */
158 public void setIsSomeFlag(boolean someFlag) {
159
160 this.someFlag = someFlag;
161 }
162 }