Class ValidationError

  • All Implemented Interfaces:
    java.io.Serializable, org.springframework.validation.BindingResult, org.springframework.validation.Errors

    public class ValidationError
    extends org.springframework.validation.AbstractBindingResult
    Error class to be used for testing purpose only; implements the Errors interface.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.springframework.validation.BindingResult

        MODEL_KEY_PREFIX
      • Fields inherited from interface org.springframework.validation.Errors

        NESTED_PATH_SEPARATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationError​(java.lang.String objectName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getActualFieldValue​(java.lang.String s)  
      java.lang.Object getTarget()  
      • Methods inherited from class org.springframework.validation.AbstractBindingResult

        addAllErrors, addError, equals, findEditor, formatFieldValue, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldType, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getPropertyEditorRegistry, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordFieldValue, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolver
      • Methods inherited from class org.springframework.validation.AbstractErrors

        canonicalFieldName, doSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.springframework.validation.Errors

        getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath
    • Constructor Detail

      • ValidationError

        public ValidationError​(java.lang.String objectName)
    • Method Detail

      • getTarget

        public java.lang.Object getTarget()
        Specified by:
        getTarget in interface org.springframework.validation.BindingResult
        Specified by:
        getTarget in class org.springframework.validation.AbstractBindingResult
      • getActualFieldValue

        protected java.lang.Object getActualFieldValue​(java.lang.String s)
        Specified by:
        getActualFieldValue in class org.springframework.validation.AbstractBindingResult