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