com.paragon.open.dictionary.api
Enum Language

java.lang.Object
  extended by java.lang.Enum<Language>
      extended by com.paragon.open.dictionary.api.Language
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Language>

public enum Language
extends java.lang.Enum<Language>

Supported languages.

Author:
Sergey Solomatin (Sergey_Solomatin@penreader.com)

Enum Constant Summary
ANY
          A special item.
Arabic
           
Basque
           
Bulgarian
           
Catalan
           
Chinese
           
Croatian
           
Czech
           
Danish
           
Dutch
           
English
           
Estonian
           
Finnish
           
French
           
German
           
Greek
           
Hebrew
           
Hungarian
           
Italian
           
Japanese
           
Korean
           
Latin
           
Lithuanian
           
Norwegian
           
Polish
           
Portuguese
           
Romanian
           
Russian
           
Serbian
           
Slovak
           
Slovenian
           
Spanish
           
Swedish
           
Turkish
           
Ukrainian
           
Uzbek
           
Vietnamese
           
 
Field Summary
 java.lang.String name
          Name of the language.
 java.lang.String shortName
          Short name of the language.
 
Method Summary
static Language fromLocale(java.util.Locale loc)
          Helper to get language by locale.
static Language fromName(java.lang.String name)
          Helper to get language by name.
static Language fromShortName(java.lang.String shortName)
          Helper to get language by short name.
 java.lang.String toString()
           
static Language valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Language[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANY

public static final Language ANY
A special item. Means any language.


Arabic

public static final Language Arabic

Basque

public static final Language Basque

Bulgarian

public static final Language Bulgarian

Catalan

public static final Language Catalan

Chinese

public static final Language Chinese

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

Hebrew

public static final Language Hebrew

Hungarian

public static final Language Hungarian

Italian

public static final Language Italian

Japanese

public static final Language Japanese

Korean

public static final Language Korean

Latin

public static final Language Latin

Lithuanian

public static final Language Lithuanian

Norwegian

public static final Language Norwegian

Polish

public static final Language Polish

Portuguese

public static final Language Portuguese

Romanian

public static final Language Romanian

Russian

public static final Language Russian

Serbian

public static final Language Serbian

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

Uzbek

public static final Language Uzbek

Vietnamese

public static final Language Vietnamese
Field Detail

name

public final java.lang.String name
Name of the language.


shortName

public final java.lang.String shortName
Short name of the language.

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Language>

fromName

public static Language fromName(java.lang.String name)
Helper to get language by name.

Parameters:
name - name of the language
Returns:
language or null if not found

fromShortName

public static Language fromShortName(java.lang.String shortName)
Helper to get language by short name.

Parameters:
shortName - short name of the language
Returns:
language or null if not found

fromLocale

public static Language fromLocale(java.util.Locale loc)
Helper to get language by locale.

Parameters:
loc - locale
Returns:
language or null if not found