01: package nl.knowlogy.validation.test.xdoclet.testclasses;
02:
03: import nl.knowlogy.validation.ClassValidator;
04:
05: /**
06: *
07: * @validate.class
08: *
09: * @author roho
10: *
11: */
12: public class IntegerTestClass extends BaseValidatableClass {
13:
14: Integer intValue;
15: int intPrimitiveValue;
16:
17: private static final ClassValidator validator = new IntegerTestClassClassValidator();
18:
19: protected ClassValidator getValidator() {
20: return validator;
21: }
22:
23: /**
24: * @validate.maxsize value="100"
25: * @validate.minsize value="50"
26: *
27: */
28: public void setIntPrimitiveValue(int intPrimitiveValue) {
29: this .intPrimitiveValue = intPrimitiveValue;
30: }
31:
32: /**
33: * @validate.maxsize value="100"
34: * @validate.minsize value="50"
35: *
36: */
37: public void setIntValue(Integer intValue) {
38: this .intValue = intValue;
39: }
40:
41: public int getIntPrimitiveValue() {
42: return intPrimitiveValue;
43: }
44:
45: public Integer getIntValue() {
46: return intValue;
47: }
48: }
|