ch.qos.cal10n
Annotation Type LocaleNames


@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 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.

Author:
Ceki Gülcü

Required Element Summary
 String[] value
           
 

Element Detail

value

public abstract String[] value


Copyright © 2009 QOS.ch. All Rights Reserved.