Interface ClassValidator

    • Method Detail

      • validate

        void validate​(java.lang.Object object,
                      ValidationContext context)
               throws ValidationException
        Validates the given Object. An exception should be thrown when the first invalid field is discovered.
        Specified by:
        validate in interface TypeValidator
        Parameters:
        object - the Object to validate
        context - the ValidationContext
        Throws:
        ValidationException - when the class is not valid.