public class StringLengthValidator extends StringValidator
Constructor and Description |
---|
StringLengthValidator(boolean required,
Integer minLength,
Integer maxLength) |
StringLengthValidator(boolean required,
Integer minLength,
Integer maxLength,
String message,
String title) |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxLength() |
Integer |
getMinLength() |
void |
setMaxLength(Integer maxLength) |
void |
setMinLength(Integer minLength) |
protected void |
validate(FormularComponent component,
String value) |
isRequired, setRequired, validate
getMessage, getTitle, setMessage, setTitle, throwValidationException
public StringLengthValidator(boolean required, Integer minLength, Integer maxLength)
public Integer getMinLength()
public void setMinLength(Integer minLength)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
protected void validate(FormularComponent component, String value) throws ValidationException
validate
in class StringValidator
ValidationException
Copyright © 2003–2021 XDEV Software. All rights reserved.