|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface ResourceBundleName
This annotation serves to designate the name of the resource bundle corresponding to an enum type.
Typical usage is:
@LocaleNames({"en", "jp"}) @ResourceBundleName("colors"); public class enum Colors { RED, WHITE, BLUE; }
In the above example, @ResourceBundleName("colors") means that there exists resource files with the root name "colors". In conjunction with the information provided in the @LocaleNames annotation, we can assume that the files colors_en.properties and colors_jp.properties exist.
Verification tools such as MessageKeyVerifier
can then proceed to
check that the keys defined in the enum type match those in the corresponding
resource bundles.
Required Element Summary | |
---|---|
String |
value
|
Element Detail |
---|
public abstract String value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |