public class CountryValidator extends java.lang.Object implements javax.validation.ConstraintValidator<CountryConstraint,java.lang.String>
for implementation details
Constructor and Description |
---|
CountryValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(CountryConstraint country) |
boolean |
isValid(java.lang.String country,
javax.validation.ConstraintValidatorContext context) |
public void initialize(CountryConstraint country)
initialize
in interface javax.validation.ConstraintValidator<CountryConstraint,java.lang.String>
public boolean isValid(java.lang.String country, javax.validation.ConstraintValidatorContext context)
isValid
in interface javax.validation.ConstraintValidator<CountryConstraint,java.lang.String>