Package adams.flow.core
Enum TesseractLanguage
- java.lang.Object
-
- java.lang.Enum<TesseractLanguage>
-
- adams.flow.core.TesseractLanguage
-
- All Implemented Interfaces:
EnumWithCustomDisplay<TesseractLanguage>
,EnumWithCustomParsing<TesseractLanguage>
,Serializable
,Comparable<TesseractLanguage>
public enum TesseractLanguage extends Enum<TesseractLanguage> implements EnumWithCustomDisplay<TesseractLanguage>
Enumeration of languages that tesseract supports.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TesseractLanguage
parse(String s)
Parses the given string and returns the associated enum.String
toCode()
Returns the ISO 639-2 string.String
toDisplay()
Returns the display string.String
toRaw()
Returns the raw enum string.String
toString()
Returns the display string.static String
toString(AbstractOption option, Object object)
Returns the enum as string.static TesseractLanguage
valueOf(AbstractOption option, String str)
Returns an enum generated from the string.static TesseractLanguage
valueOf(String name)
Returns the enum constant of this type with the specified name.static TesseractLanguage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALBANIAN
public static final TesseractLanguage ALBANIAN
-
ARABIC
public static final TesseractLanguage ARABIC
-
AZERBAUIJANI
public static final TesseractLanguage AZERBAUIJANI
-
BULGARIAN
public static final TesseractLanguage BULGARIAN
-
CATALAN
public static final TesseractLanguage CATALAN
-
CHEROKEE
public static final TesseractLanguage CHEROKEE
-
CROATION
public static final TesseractLanguage CROATION
-
CZECH
public static final TesseractLanguage CZECH
-
DANISH
public static final TesseractLanguage DANISH
-
DANISH_FRAKTUR
public static final TesseractLanguage DANISH_FRAKTUR
-
DUTCH
public static final TesseractLanguage DUTCH
-
ENGLISH
public static final TesseractLanguage ENGLISH
-
ESPERANTO
public static final TesseractLanguage ESPERANTO
-
ESTONIAN
public static final TesseractLanguage ESTONIAN
-
FINNISH
public static final TesseractLanguage FINNISH
-
FRENCH
public static final TesseractLanguage FRENCH
-
GALICIAN
public static final TesseractLanguage GALICIAN
-
GERMAN
public static final TesseractLanguage GERMAN
-
GREEK
public static final TesseractLanguage GREEK
-
HEBREW
public static final TesseractLanguage HEBREW
-
HINDI
public static final TesseractLanguage HINDI
-
HUNGARIAN
public static final TesseractLanguage HUNGARIAN
-
INDONESIAN
public static final TesseractLanguage INDONESIAN
-
ITALIAN
public static final TesseractLanguage ITALIAN
-
JAPANESE
public static final TesseractLanguage JAPANESE
-
KOREAN
public static final TesseractLanguage KOREAN
-
LATVIAN
public static final TesseractLanguage LATVIAN
-
LITHUANIAN
public static final TesseractLanguage LITHUANIAN
-
NORWEGIAN
public static final TesseractLanguage NORWEGIAN
-
OLD_ENGLISH
public static final TesseractLanguage OLD_ENGLISH
-
OLD_FRENCH
public static final TesseractLanguage OLD_FRENCH
-
POLISH
public static final TesseractLanguage POLISH
-
PORTUGUESE
public static final TesseractLanguage PORTUGUESE
-
ROMANIAN
public static final TesseractLanguage ROMANIAN
-
RUSSIAN
public static final TesseractLanguage RUSSIAN
-
SERBIAN
public static final TesseractLanguage SERBIAN
-
SIMPLIFIED_CHINESE
public static final TesseractLanguage SIMPLIFIED_CHINESE
-
SLOVAKIAN
public static final TesseractLanguage SLOVAKIAN
-
SLOVENIAN
public static final TesseractLanguage SLOVENIAN
-
SPANISH
public static final TesseractLanguage SPANISH
-
SWEDISH
public static final TesseractLanguage SWEDISH
-
TAGALOG
public static final TesseractLanguage TAGALOG
-
TAMIL
public static final TesseractLanguage TAMIL
-
TELUGU
public static final TesseractLanguage TELUGU
-
THAI
public static final TesseractLanguage THAI
-
TRADITIONAL_CHINESE
public static final TesseractLanguage TRADITIONAL_CHINESE
-
TURKISH
public static final TesseractLanguage TURKISH
-
UKRAINIAN
public static final TesseractLanguage UKRAINIAN
-
VIETNAMESE
public static final TesseractLanguage VIETNAMESE
-
-
Method Detail
-
values
public static TesseractLanguage[] 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 (TesseractLanguage c : TesseractLanguage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TesseractLanguage valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toDisplay
public String toDisplay()
Returns the display string.- Specified by:
toDisplay
in interfaceEnumWithCustomDisplay<TesseractLanguage>
- Returns:
- the display string
-
toCode
public String toCode()
Returns the ISO 639-2 string.- Returns:
- the ISO 639-2 string
-
toRaw
public String toRaw()
Returns the raw enum string.- Specified by:
toRaw
in interfaceEnumWithCustomDisplay<TesseractLanguage>
- Returns:
- the raw enum string
-
toString
public String toString()
Returns the display string.- Overrides:
toString
in classEnum<TesseractLanguage>
- Returns:
- the display string
-
parse
public TesseractLanguage parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parse
in interfaceEnumWithCustomParsing<TesseractLanguage>
- Parameters:
s
- the string to parse- Returns:
- the enum or null if not found
-
toString
public static String toString(AbstractOption option, Object object)
Returns the enum as string.- Parameters:
option
- the current optionobject
- the enum object to convert- Returns:
- the generated string
-
valueOf
public static TesseractLanguage valueOf(AbstractOption option, String str)
Returns an enum generated from the string.- Parameters:
option
- the current optionstr
- the string to convert to an enum- Returns:
- the generated enum or null in case of error
-
-