Class SizeConstraint
- java.lang.Object
-
- com.github.damianwajser.validator.constraint.AbstractConstraint
-
- com.github.damianwajser.validator.constraint.global.SizeConstraint
-
public class SizeConstraint extends AbstractConstraint implements javax.validation.ConstraintValidator<Size,Object>
-
-
Field Summary
-
Fields inherited from class com.github.damianwajser.validator.constraint.AbstractConstraint
excludes, isNulleable, onlyIn
-
-
Constructor Summary
Constructors Constructor Description SizeConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhasError(Object field, javax.validation.ConstraintValidatorContext cxt)voidinitialize(Size field)SizeConstraintinitialize(org.springframework.http.HttpMethod[] excludes, org.springframework.http.HttpMethod[] onlyIn, int max, int min, boolean isNulleable)-
Methods inherited from class com.github.damianwajser.validator.constraint.AbstractConstraint
currentHttpMethodIsSkippeable, getCurrentHttpMethod, getCurrentHttpRequest, initialize, isValid
-
-
-
-
Method Detail
-
initialize
public void initialize(Size field)
-
initialize
public SizeConstraint initialize(org.springframework.http.HttpMethod[] excludes, org.springframework.http.HttpMethod[] onlyIn, int max, int min, boolean isNulleable)
-
hasError
protected boolean hasError(Object field, javax.validation.ConstraintValidatorContext cxt)
- Specified by:
hasErrorin classAbstractConstraint
-
-