public class MatchingMethodValidator extends AbstractObjectValidator<T,String>
Constructor and Description |
---|
MatchingMethodValidator(String parameterName,
String value) |
Modifier and Type | Method and Description |
---|---|
MatchingMethod |
getMatchingMethod(Set<MatchingMethod> supportedMethods) |
T |
notEmpty() |
T |
shorterThanOrEqualsTo(int length) |
T |
trim() |
getParameterName, getValue, notNull, setValue
public MatchingMethod getMatchingMethod(Set<MatchingMethod> supportedMethods) throws InvalidParameterException, UnsupportedMatchingMethodException
public T notEmpty() throws InvalidParameterException
InvalidParameterException
public T shorterThanOrEqualsTo(int length) throws InvalidParameterException
InvalidParameterException
public T trim()