|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface LocaleNames
This annotation serves to designate a list of locale names for which resource bundles exist.
Typical usage is:
@LocaleNames({"en", "jp"}) @ResourceBundleName("colors"); public class enum Colors { RED, WHITE, BLUE; }
In the above example, @LocaleNames({"en", "jp"}) means that there are English (en) and Japanese translations for the message codes found the Colors enum. The name of the corresponding resource bundle named "colors".
Verification tools such MessageCodeVerifier
can thus conclude that
the resource bundle files colors_en.properties and
colors_jp.properties exist and should be checked against the codes
defined in the Colors enum.
Required Element Summary | |
---|---|
String[] |
value
|
Element Detail |
---|
public abstract String[] value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |