Class OnlyMatchingChildrenValidator

java.lang.Object
de.fraunhofer.iese.mydata.solution.validation.OnlyMatchingChildrenValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<OnlyMatchingChildren,Solution>

public class OnlyMatchingChildrenValidator extends Object implements javax.validation.ConstraintValidator<OnlyMatchingChildren,Solution>
The Class PolicyValidator.
  • Constructor Details

    • OnlyMatchingChildrenValidator

      public OnlyMatchingChildrenValidator()
  • Method Details

    • initialize

      public void initialize(OnlyMatchingChildren constraintAnnotation)
      Specified by:
      initialize in interface javax.validation.ConstraintValidator<OnlyMatchingChildren,Solution>
    • isValid

      public boolean isValid(Solution solution, javax.validation.ConstraintValidatorContext context)
      Use this method to test the constraint.
      Specified by:
      isValid in interface javax.validation.ConstraintValidator<OnlyMatchingChildren,Solution>
      See Also:
      • ConstraintValidator.isValid(java.lang.Object, javax.validation.ConstraintValidatorContext)