|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.DefaultMessageSourceResolvable org.springframework.validation.ObjectError
public class ObjectError
Encapsulates an object error, that is, a global reason for rejecting an object.
See the DefaultMessageCodesResolver
javadoc for details on
how a message code list is built for an ObjectError
.
FieldError
,
DefaultMessageCodesResolver
,
Serialized FormConstructor Summary | |
---|---|
ObjectError(String objectName,
String[] codes,
Object[] arguments,
String defaultMessage)
Creates a new instance of the ObjectError class. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
String |
getObjectName()
Return the name of the affected object. |
int |
hashCode()
|
String |
toString()
Default implementation exposes the attributes of this MessageSourceResolvable. |
Methods inherited from class org.springframework.context.support.DefaultMessageSourceResolvable |
---|
getArguments, getCode, getCodes, getDefaultMessage, resolvableToString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectError(String objectName, String[] codes, Object[] arguments, String defaultMessage)
ObjectError
class.
objectName
- the name of the affected objectcodes
- the codes to be used to resolve this messagearguments
- the array of arguments to be used to resolve this messagedefaultMessage
- the default message to be used to resolve this message
IllegalArgumentException
- if the supplied objectName
is null
Method Detail |
---|
public String getObjectName()
public String toString()
DefaultMessageSourceResolvable
resolvableToString()
.
toString
in class DefaultMessageSourceResolvable
public boolean equals(Object other)
equals
in class DefaultMessageSourceResolvable
public int hashCode()
hashCode
in class DefaultMessageSourceResolvable
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |