public class BlankConstraint extends AbstractVetoingConstraint
A Constraint that validates a string is not blank.
| Modifiers | Name | Description |
|---|---|---|
private boolean |
blank |
| Fields inherited from class | Fields |
|---|---|
class AbstractConstraint |
classShortName, constraintOwningClass, constraintParameter, constraintPropertyName, fullQualifiedConstraintErrorCode, fullQualifiedPrefix, messageSource, shortNameConstraintErrorCode, shortNamePrefix |
| Constructor and description |
|---|
BlankConstraint
(java.lang.Class<?> constraintOwningClass, java.lang.String constraintPropertyName, java.lang.Object constraintParameter, org.springframework.context.MessageSource messageSource) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.String |
getName() |
|
public java.lang.Object |
getParameter() |
|
public boolean |
isBlank() |
|
protected boolean |
processValidateWithVetoing(java.lang.Object target, java.lang.Object propertyValue, org.springframework.validation.Errors errors) |
|
protected boolean |
skipBlankValues() |
|
public boolean |
supports(java.lang.Class type) |
|
protected java.lang.Object |
validateParameter(java.lang.Object constraintParameter) |
| Methods inherited from class | Name |
|---|---|
class AbstractVetoingConstraint |
processValidate, processValidateWithVetoing, validateWithVetoing |
class AbstractConstraint |
checkState, getDefaultMessage, getParameter, getPropertyName, getPropertyValue, isValid, processValidate, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, skipBlankValues, skipNullValues, toString, validate, validateParameter |