Class ValidationResponse

    • Field Detail

      • EMPTY_RESPONSE

        public static final ValidationResponse EMPTY_RESPONSE
        Empty validation response.
    • Method Detail

      • addError

        public void addError​(String fieldName,
                             String errorKey)
        Add field with error key to response.
        Parameters:
        fieldName - - field name
        errorKey - - error key
      • hasErrors

        public boolean hasErrors()
        Is validation response has errors.
        Returns:
        true or false
      • main

        public static void main​(String... args)