01: package nl.knowlogy.validation.annotations.beans;
02:
03: import nl.knowlogy.validation.annotations.ValidateClass;
04: import nl.knowlogy.validation.annotations.ValidateMaxLength;
05:
06: @ValidateClass
07: public class MaxLengthBean {
08:
09: private String testString;
10: private Integer testInteger;
11:
12: @ValidateMaxLength(length=20)
13: public String getTestString() {
14: return testString;
15: }
16:
17: public void setTestString(String testString) {
18: this .testString = testString;
19: }
20:
21: public void setTestInteger(Integer testInteger) {
22: this .testInteger = testInteger;
23: }
24:
25: @ValidateMaxLength(length=2)
26: public Integer getTestInteger() {
27: return testInteger;
28: }
29:
30: }
|