public class LanguageValidator extends AbstractObjectValidator<T,String>
Constructor and Description |
---|
LanguageValidator(String parameterName,
String value) |
Modifier and Type | Method and Description |
---|---|
Language |
getLanguage() |
Language |
getUniqueLanguage(Collection<Language> candidates) |
T |
notEmpty() |
T |
shorterThanOrEqualsTo(int length) |
T |
trim() |
getParameterName, getValue, notNull, setValue
public Language getLanguage() throws InvalidParameterException
InvalidParameterException
public Language getUniqueLanguage(Collection<Language> candidates) throws InvalidParameterException, LanguageNotUniquelyDecidedException, UnsupportedLanguageException
public T notEmpty() throws InvalidParameterException
InvalidParameterException
public T shorterThanOrEqualsTo(int length) throws InvalidParameterException
InvalidParameterException
public T trim()