Class EndpointValidator

  • All Implemented Interfaces:
    javax.validation.ConstraintValidator<EndpointValid,​EndpointModel>

    public class EndpointValidator
    extends java.lang.Object
    implements javax.validation.ConstraintValidator<EndpointValid,​EndpointModel>
    Validates if one of fields: the SpecUrl and the SpecData, is not empty of the given instance of EndpointModel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​(EndpointValid endpoint)  
      boolean isValid​(EndpointModel endpoint, javax.validation.ConstraintValidatorContext validatorContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EndpointValidator

        public EndpointValidator()
    • Method Detail

      • isValid

        public boolean isValid​(EndpointModel endpoint,
                               javax.validation.ConstraintValidatorContext validatorContext)
        Specified by:
        isValid in interface javax.validation.ConstraintValidator<EndpointValid,​EndpointModel>