Class GroupExistenceValidator
- java.lang.Object
-
- org.motechproject.mots.validate.constraintvalidators.GroupExistenceValidator
-
- All Implemented Interfaces:
javax.validation.ConstraintValidator<GroupExistence,java.lang.String>
public class GroupExistenceValidator extends java.lang.Object implements javax.validation.ConstraintValidator<GroupExistence,java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description GroupExistenceValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(GroupExistence constraintAnnotation)booleanisValid(java.lang.String groupId, javax.validation.ConstraintValidatorContext context)
-
-
-
Method Detail
-
initialize
public void initialize(GroupExistence constraintAnnotation)
- Specified by:
initializein interfacejavax.validation.ConstraintValidator<GroupExistence,java.lang.String>
-
isValid
public boolean isValid(java.lang.String groupId, javax.validation.ConstraintValidatorContext context)- Specified by:
isValidin interfacejavax.validation.ConstraintValidator<GroupExistence,java.lang.String>
-
-