Class RequiredUriValidator

java.lang.Object
com.atlassian.bitbucket.validation.RequiredUriValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<RequiredUri,URI>

public class RequiredUriValidator extends Object implements javax.validation.ConstraintValidator<RequiredUri,URI>
Validates an object annotated with RequiredUri
Since:
4.7
  • Constructor Details

    • RequiredUriValidator

      public RequiredUriValidator()
  • Method Details

    • initialize

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

      public boolean isValid(URI value, javax.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface javax.validation.ConstraintValidator<RequiredUri,URI>