01: /*
02: * Created on 11-jul-2005
03: *
04: * @author <a href="mailto:robert.hofstra@knowlogy.nl">Robert Hofstra, Knowlogy</a>
05: */
06:
07: package nl.knowlogy.validation;
08:
09: /**
10: * ErrorCodes containins default errorcodes
11: * used by validation.
12: *
13: * @author <a href="mailto:robert.hofstra@knowlogy.nl">Robert Hofstra, Knowlogy</a>
14: */
15: public abstract class ErrorCodes {
16:
17: private static final String PREFIX = "nl.knowlogy.validation.errors.";
18:
19: public static final String INVALID_MAX_LENGTH = PREFIX
20: + "invalidmaxlength";
21:
22: public static final String INVALID_MIN_LENGTH = PREFIX
23: + "invalidminlength";
24:
25: public static final String INVALID_MIN_SIZE = PREFIX
26: + "invalidminsize";
27:
28: public static final String INVALID_MAX_SIZE = PREFIX
29: + "invalidmaxsize";
30:
31: public static final String NOT_ALLOWED_VALUE = PREFIX
32: + "notallowedvalue";
33:
34: public static final String INVALID_FORMAT = PREFIX
35: + "invalidformat";
36:
37: public static final String ISREQUIRED_VALUE = PREFIX
38: + "isrequiredvalue";
39:
40: public static final String ISNOTBLANK = PREFIX + "isnotblank";
41:
42: public static final String INVALID_RANGE = PREFIX + "invalidrange";
43:
44: public static final String INVALID_EMAIL_ADDRESS = PREFIX
45: + "invalidemail";
46:
47: public static final String INVALID_CREDITCARDNUMBER = PREFIX
48: + "invalidcreditcardnumber";
49: }
|