public class MaxLengthConstraint extends AbstractStringPropertyConstraint implements Serializable
Constructor and Description |
---|
MaxLengthConstraint() |
MaxLengthConstraint(Integer maxLength) |
Modifier and Type | Method and Description |
---|---|
protected void |
doValidate(String propertyValue) |
Integer |
getMaxLength() |
void |
setMaxLength(Integer maxLength) |
initialize, validate
validate
public MaxLengthConstraint(Integer maxLength)
public MaxLengthConstraint()
protected void doValidate(String propertyValue) throws ConstraintViolationException
doValidate
in class AbstractStringPropertyConstraint
ConstraintViolationException
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
Copyright © 2017. All rights reserved.