public class LanguageParameterValidator extends Object
Constructor and Description |
---|
LanguageParameterValidator() |
Modifier and Type | Method and Description |
---|---|
static Language |
getUniqueLanguage(String parameterName,
Language language,
Collection<Language> candidates) |
static LanguagePair |
getUniqueLanguagePair(String parameterName1,
String parameterName2,
Language language1,
Language language2,
Collection<LanguagePair> candidates) |
static DictMatchingMethod |
getValidDictSearchMethod(String parameterName,
String value) |
static Language |
getValidLanguage(String aParametername,
String aValue) |
static MatchingMethod |
getValidMatchingMethod(String aParameterName,
String aValue) |
static PartOfSpeech |
getValidPartOfSpeech(String aParameterName,
String aValue) |
public static DictMatchingMethod getValidDictSearchMethod(String parameterName, String value) throws InvalidParameterException
InvalidParameterException
public static MatchingMethod getValidMatchingMethod(String aParameterName, String aValue) throws InvalidParameterException
InvalidParameterException
public static PartOfSpeech getValidPartOfSpeech(String aParameterName, String aValue) throws InvalidParameterException
InvalidParameterException
public static Language getValidLanguage(String aParametername, String aValue) throws InvalidParameterException
InvalidParameterException
public static Language getUniqueLanguage(String parameterName, Language language, Collection<Language> candidates) throws LanguageNotUniquelyDecidedException, UnsupportedLanguageException
public static LanguagePair getUniqueLanguagePair(String parameterName1, String parameterName2, Language language1, Language language2, Collection<LanguagePair> candidates) throws LanguagePairNotUniquelyDecidedException, UnsupportedLanguagePairException