Enum Class TdbLanguage

java.lang.Object
java.lang.Enum<TdbLanguage>
com.tietoenator.trip.jxp.TdbLanguage
All Implemented Interfaces:
Serializable, Comparable<TdbLanguage>, Constable

public enum TdbLanguage extends Enum<TdbLanguage>
Enumeration of available TRIP CCL dialects
  • Enum Constant Details

    • 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 Details

    • values

      public static TdbLanguage[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TdbLanguage valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      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