public enum ReferentialLocale extends Enum<ReferentialLocale>
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.
| Enum Constant and Description |
|---|
ES
correspond a la propriete
label3 d'un ReferentialDto. |
FR
correspond a la propriete
label2 d'un ReferentialDto. |
UK
correspond a la propriete
label1 d'un I18nReferentialDto. |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnName() |
<E extends I18nReferentialDto> |
getLabel(E i18nEntity) |
String |
getLibelle() |
Locale |
getLocale() |
<E extends I18nReferentialDto> |
setLabel(String label,
E i18nDto) |
String |
toString() |
static ReferentialLocale |
valueOf(Locale locale) |
static ReferentialLocale |
valueOf(String name)
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.
|
public static final ReferentialLocale UK
label1 d'un I18nReferentialDto.I18nReferentialDto.getLabel1()public static final ReferentialLocale FR
label2 d'un ReferentialDto.I18nReferentialDto.getLabel2()public static final ReferentialLocale ES
label3 d'un ReferentialDto.I18nReferentialDto.getLabel3()public static ReferentialLocale[] values()
for (ReferentialLocale c : ReferentialLocale.values()) System.out.println(c);
public static ReferentialLocale valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Locale getLocale()
public String getLibelle()
public static ReferentialLocale valueOf(Locale locale)
public String getColumnName()
public String toString()
toString in class Enum<ReferentialLocale>public <E extends I18nReferentialDto> void setLabel(String label, E i18nDto)
public <E extends I18nReferentialDto> String getLabel(E i18nEntity)
Copyright © 2017–2018 IRD. All rights reserved.