|
||||||||||
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"}) @BaseName("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 keys found in the Colors enum. The name of the corresponding resource bundle is named "colors".
Verification tools such MessageKeyVerifier
can thus conclude that the
resource bundle files colors_en.properties and
colors_jp.properties should exist and checked against the keys
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 |