Enum 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
    • 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 name
        NullPointerException - 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 name
        NullPointerException - if the argument is null
      • getColumnName

        public String getColumnName()