01: package nl.knowlogy.validation.annotations.beans;
02:
03: import nl.knowlogy.validation.annotations.ValidateClass;
04: import nl.knowlogy.validation.annotations.ValidateEmail;
05:
06: @ValidateClass
07: public class EmailSupport {
08:
09: private String name;
10: private String email;
11:
12: public String getName() {
13: return name;
14: }
15:
16: public void setName(String name) {
17: this .name = name;
18: }
19:
20: public void setEmail(String email) {
21: this .email = email;
22: }
23:
24: @ValidateEmail(errorCode="invalid.email")
25: public String getEmail() {
26: return email;
27: }
28:
29: }
|