public class MinSizeConstraint extends AbstractConstraint
Constructor and Description |
---|
MinSizeConstraint() |
Modifier and Type | Method and Description |
---|---|
int |
getMinSize() |
java.lang.String |
getName() |
void |
setParameter(java.lang.Object constraintParameter)
The parameter which the constraint is validated against.
|
boolean |
supports(java.lang.Class type)
Returns whether the constraint supports being applied against the specified type;
|
getParameter, getPropertyName, isValid, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, setMessageSource, setOwningClass, setPropertyName, toString, validate
public int getMinSize()
public void setParameter(java.lang.Object constraintParameter)
Constraint
setParameter
in interface Constraint
setParameter
in class AbstractConstraint
constraintParameter
- The constraintParameter to set.public java.lang.String getName()
public boolean supports(java.lang.Class type)
Constraint
type
- The type to support