Enum Language

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

    public enum Language
    extends java.lang.Enum<Language>
    List of languages and their language codes for the Azure Cognitive Services API.
    Author:
    Christopher Mindus
    • Enum Constant Detail

      • Auto_detect

        public static final Language Auto_detect
      • Afrikaans

        public static final Language Afrikaans
      • Arabic

        public static final Language Arabic
      • Bosnian_Latin

        public static final Language Bosnian_Latin
      • Bulgarian

        public static final Language Bulgarian
      • Catalan

        public static final Language Catalan
      • Chinese_Simplified

        public static final Language Chinese_Simplified
      • Chinese_Traditional

        public static final Language Chinese_Traditional
      • Croatian

        public static final Language Croatian
      • Czech

        public static final Language Czech
      • Danish

        public static final Language Danish
      • Dutch

        public static final Language Dutch
      • English

        public static final Language English
      • Estonian

        public static final Language Estonian
      • Finnish

        public static final Language Finnish
      • French

        public static final Language French
      • German

        public static final Language German
      • Greek

        public static final Language Greek
      • Haitian_Creole

        public static final Language Haitian_Creole
      • Hebrew

        public static final Language Hebrew
      • Hindi

        public static final Language Hindi
      • Hmong_Daw

        public static final Language Hmong_Daw
      • Hungarian

        public static final Language Hungarian
      • Indonesian

        public static final Language Indonesian
      • Italian

        public static final Language Italian
      • Japanese

        public static final Language Japanese
      • Kiswahili

        public static final Language Kiswahili
      • Klingon

        public static final Language Klingon
      • Klingon_pIqaD

        public static final Language Klingon_pIqaD
      • Korean

        public static final Language Korean
      • Latvian

        public static final Language Latvian
      • Lithuanian

        public static final Language Lithuanian
      • Malay

        public static final Language Malay
      • Maltese

        public static final Language Maltese
      • Norwegian

        public static final Language Norwegian
      • Persian

        public static final Language Persian
      • Polish

        public static final Language Polish
      • Portuguese

        public static final Language Portuguese
      • Queretaro_Otomi

        public static final Language Queretaro_Otomi
      • Romanian

        public static final Language Romanian
      • Russian

        public static final Language Russian
      • Serbian_Cyrillic

        public static final Language Serbian_Cyrillic
      • Serbian_Latin

        public static final Language Serbian_Latin
      • Slovak

        public static final Language Slovak
      • Slovenian

        public static final Language Slovenian
      • Spanish

        public static final Language Spanish
      • Swedish

        public static final Language Swedish
      • Turkish

        public static final Language Turkish
      • Ukrainian

        public static final Language Ukrainian
      • Vietnamese

        public static final Language Vietnamese
      • Welsh

        public static final Language Welsh
      • Yucatec_Maya

        public static final Language Yucatec_Maya
    • Field Detail

      • langID

        public final java.lang.String langID
        Short abbreviation of the language name, typically two characters (unless for Chinese).
      • description

        public final java.lang.String description
        Description.
    • Method Detail

      • values

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

        public static Language 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
      • get

        public static Language get​(java.lang.String langID)
        Creates a Language enum from a language ID.
        Parameters:
        langID - The language ID.
        Returns:
        The Language.Nnn enum, or null if not found.
      • toString

        public java.lang.String toString()
        Gets the language name.
        Overrides:
        toString in class java.lang.Enum<Language>
        Returns:
        The language name in English.