Friday, September 26, 2008

The validators

I will change the design of jmap.validators.
Now, the validators is using a set of if(...) to distinguish the annotation type. I should use another pattern to handle it. A set of classes may declare a common method to handle the "valid" and "formatMessage".
And the error messages may need more extra information. A field name may need to indicate this message's field.

No comments: