LanguageScope Class

public final class LanguageScope
extends ExpandableStringEnum<LanguageScope>

Translator languages scopes.

Field Summary

Modifier and Type Field and Description
static final LanguageScope MODELS

Static value Models for LanguageScope.

static final LanguageScope TRANSLATION

Static value Translation for LanguageScope.

static final LanguageScope TRANSLITERATION

Static value Transliteration for LanguageScope.

Constructor Summary

Constructor Description
LanguageScope()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LanguageScope value.

Method Summary

Modifier and Type Method and Description
static LanguageScope fromString(String name)

Creates or finds a LanguageScope from its string representation.

static Collection<LanguageScope> values()

Gets known LanguageScope values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

MODELS

public static final LanguageScope MODELS

Static value Models for LanguageScope.

TRANSLATION

public static final LanguageScope TRANSLATION

Static value Translation for LanguageScope.

TRANSLITERATION

public static final LanguageScope TRANSLITERATION

Static value Transliteration for LanguageScope.

Constructor Details

LanguageScope

@Deprecated
public LanguageScope()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LanguageScope value.

Method Details

fromString

public static LanguageScope fromString(String name)

Creates or finds a LanguageScope from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LanguageScope.

values

public static Collection<LanguageScope> values()

Gets known LanguageScope values.

Returns:

known LanguageScope values.

Applies to