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