01: package nl.knowlogy.validation.test.xdoclet.testclasses;
02:
03: import nl.knowlogy.validation.ClassValidator;
04: import nl.knowlogy.validation.Messages;
05: import nl.knowlogy.validation.Validatable;
06:
07: public abstract class BaseValidatableClass implements Validatable {
08:
09: protected abstract ClassValidator getValidator();
10:
11: public void validate(Messages messages) {
12: getValidator().validate(this, messages);
13: }
14: }
|