Package com.tietoenator.trip.jxp
Enum Class TdbLanguage
- All Implemented Interfaces:
Serializable
,Comparable<TdbLanguage>
,Constable
Enumeration of available TRIP CCL dialects
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReads dialect from CHINESE.CCLDefault, unmodified dialect, doesn't read a CCL definition fileReads dialect from ENGLISH.CCLReads dialect from FINNISH.CCLReads dialect from FRENCH.CCLReads dialect from GERMAN.CCLReads dialect from JAPANESE.CCLReads dialect from NORWEGIAN.CCLReads dialect from SWEDISH.CCL -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieve the ID that corresponds to the language codestatic TdbLanguage
Returns the enum constant of this class with the specified name.static TdbLanguage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DefaultLanguage
Default, unmodified dialect, doesn't read a CCL definition file -
English
Reads dialect from ENGLISH.CCL -
Swedish
Reads dialect from SWEDISH.CCL -
Chinese
Reads dialect from CHINESE.CCL -
German
Reads dialect from GERMAN.CCL -
French
Reads dialect from FRENCH.CCL -
Finnish
Reads dialect from FINNISH.CCL -
Norwegian
Reads dialect from NORWEGIAN.CCL -
Japanese
Reads dialect from JAPANESE.CCL
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-