public class ValidContactValidator extends java.lang.Object implements javax.validation.ConstraintValidator<ValidContact,Contact>
Validates if the Contact is valid by having a contact name or department
Constructor and Description |
---|
ValidContactValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(ValidContact constraintAnnotation) |
boolean |
isValid(Contact contact,
javax.validation.ConstraintValidatorContext context) |
public ValidContactValidator()
public void initialize(ValidContact constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<ValidContact,Contact>
public boolean isValid(Contact contact, javax.validation.ConstraintValidatorContext context)
isValid
in interface javax.validation.ConstraintValidator<ValidContact,Contact>
Copyright © 2014-2018 Konik.io. All Rights Reserved.