01: package org.vraptor.i18n;
02:
03: /**
04: * A validation message.
05: *
06: * @author Guilherme Silveira
07: * @since 2.1
08: */
09: public interface ValidationMessage {
10:
11: String getCategory();
12:
13: /**
14: * Whether it has already been localized or not.
15: *
16: * @return true if already localized.
17: */
18: boolean isAlreadyLocalized();
19:
20: /**
21: * Sets this message path.
22: *
23: * @param path
24: * its path
25: * @since 2.3.1
26: */
27: void setPath(String path);
28:
29: /**
30: * Returns this validation message path.
31: *
32: * @return the path
33: */
34: String getPath();
35:
36: }
|