Enum TdbLanguage

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TdbLanguage>

    public enum TdbLanguage
    extends java.lang.Enum<TdbLanguage>
    Enumeration of available TRIP CCL dialects
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Chinese
      Reads dialect from CHINESE.CCL
      DefaultLanguage
      Default, unmodified dialect, doesn't read a CCL definition file
      English
      Reads dialect from ENGLISH.CCL
      Finnish
      Reads dialect from FINNISH.CCL
      French
      Reads dialect from FRENCH.CCL
      German
      Reads dialect from GERMAN.CCL
      Japanese
      Reads dialect from JAPANESE.CCL
      Norwegian
      Reads dialect from NORWEGIAN.CCL
      Swedish
      Reads dialect from SWEDISH.CCL
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLanguageId()
      Retrieve the ID that corresponds to the language code
      static TdbLanguage valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TdbLanguage[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • DefaultLanguage

        public static final TdbLanguage DefaultLanguage
        Default, unmodified dialect, doesn't read a CCL definition file
      • English

        public static final TdbLanguage English
        Reads dialect from ENGLISH.CCL
      • Swedish

        public static final TdbLanguage Swedish
        Reads dialect from SWEDISH.CCL
      • Chinese

        public static final TdbLanguage Chinese
        Reads dialect from CHINESE.CCL
      • German

        public static final TdbLanguage German
        Reads dialect from GERMAN.CCL
      • French

        public static final TdbLanguage French
        Reads dialect from FRENCH.CCL
      • Finnish

        public static final TdbLanguage Finnish
        Reads dialect from FINNISH.CCL
      • Norwegian

        public static final TdbLanguage Norwegian
        Reads dialect from NORWEGIAN.CCL
      • Japanese

        public static final TdbLanguage Japanese
        Reads dialect from JAPANESE.CCL
    • Method Detail

      • values

        public static TdbLanguage[] 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 (TdbLanguage c : TdbLanguage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TdbLanguage valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getLanguageId

        public int getLanguageId()
        Retrieve the ID that corresponds to the language code
        Returns:
        An ID suitable for use with the <SESSION_REQ> protocol