public class MessageContextErrors
extends org.springframework.validation.AbstractErrors
Constructor and Description |
---|
MessageContextErrors(MessageContext messageContext,
java.lang.String objectName,
java.lang.Object boundObject,
ExpressionParser expressionParser,
org.springframework.validation.MessageCodesResolver bindingErrorMessageCodesResolver,
MappingResults mappingResults)
Creates a new message context errors adapter.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllErrors(org.springframework.validation.Errors errors) |
java.util.List |
getFieldErrors() |
java.lang.Object |
getFieldValue(java.lang.String field) |
java.util.List |
getGlobalErrors() |
java.lang.String |
getObjectName() |
void |
reject(java.lang.String errorCode,
java.lang.Object[] errorArgs,
java.lang.String defaultMessage) |
void |
rejectValue(java.lang.String field,
java.lang.String errorCode,
java.lang.Object[] errorArgs,
java.lang.String defaultMessage) |
canonicalFieldName, doSetNestedPath, fixedField, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrorCount, getFieldErrorCount, getFieldErrors, getFieldType, getGlobalError, getGlobalErrorCount, getNestedPath, hasErrors, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString
public MessageContextErrors(MessageContext messageContext, java.lang.String objectName, java.lang.Object boundObject, ExpressionParser expressionParser, org.springframework.validation.MessageCodesResolver bindingErrorMessageCodesResolver, MappingResults mappingResults)
messageContext
- the backing message contextobjectName
- the object nameboundObject
- the model objectexpressionParser
- the expression parserbindingErrorMessageCodesResolver
- the message codes resolvermappingResults
- object mapping resultspublic void reject(java.lang.String errorCode, java.lang.Object[] errorArgs, java.lang.String defaultMessage)
public void rejectValue(java.lang.String field, java.lang.String errorCode, java.lang.Object[] errorArgs, java.lang.String defaultMessage)
public void addAllErrors(org.springframework.validation.Errors errors)
public java.lang.String getObjectName()
public java.util.List getGlobalErrors()
public java.util.List getFieldErrors()
public java.lang.Object getFieldValue(java.lang.String field)