Package fr.ird.observe.dto.referential
Enum ReferentialLocale
- java.lang.Object
-
- java.lang.Enum<ReferentialLocale>
-
- fr.ird.observe.dto.referential.ReferentialLocale
-
- All Implemented Interfaces:
Serializable,Comparable<ReferentialLocale>
public enum ReferentialLocale extends Enum<ReferentialLocale>
Pour définir les différentes langues du référentiel.La position de chaque constante définit l'index du champs libelleXXX à utiliser.
En base on a actuellement 8 langues possibles, pour gérer une nouvelle langue, il faut définir une nouvelle constante ici.
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EScorrespond a la proprietelabel3d'unReferentialDto.FRcorrespond a la proprietelabel2d'unReferentialDto.UKcorrespond a la proprietelabel1d'unI18nReferentialDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnName()<E extends I18nReferentialDto>
StringgetLabel(E i18nEntity)StringgetLibelle()LocalegetLocale()<E extends I18nReferentialDto>
voidsetLabel(String label, E i18nDto)StringtoString()static ReferentialLocalevalueOf(String name)Returns the enum constant of this type with the specified name.static ReferentialLocalevalueOf(Locale locale)Returns the enum constant of this type with the specified name.static ReferentialLocale[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UK
public static final ReferentialLocale UK
correspond a la proprietelabel1d'unI18nReferentialDto.- See Also:
I18nReferentialDto.getLabel1()
-
FR
public static final ReferentialLocale FR
correspond a la proprietelabel2d'unReferentialDto.- See Also:
I18nReferentialDto.getLabel2()
-
ES
public static final ReferentialLocale ES
correspond a la proprietelabel3d'unReferentialDto.- See Also:
I18nReferentialDto.getLabel3()
-
-
Method Detail
-
values
public static ReferentialLocale[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReferentialLocale c : ReferentialLocale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferentialLocale valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getLocale
public Locale getLocale()
-
getLibelle
public String getLibelle()
-
valueOf
public static ReferentialLocale valueOf(Locale locale)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
locale- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getColumnName
public String getColumnName()
-
toString
public String toString()
- Overrides:
toStringin classEnum<ReferentialLocale>
-
setLabel
public <E extends I18nReferentialDto> void setLabel(String label, E i18nDto)
-
getLabel
public <E extends I18nReferentialDto> String getLabel(E i18nEntity)
-
-