|
|||||||||
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 FormField Summary | |
---|---|
private java.lang.String |
objectName
|
Constructor Summary | |
---|---|
ObjectError(java.lang.String objectName,
java.lang.String defaultMessage)
Create a new instance of the ObjectError class. |
|
ObjectError(java.lang.String objectName,
java.lang.String[] codes,
java.lang.Object[] arguments,
java.lang.String defaultMessage)
Create a new instance of the ObjectError class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getObjectName()
Return the name of the affected object. |
int |
hashCode()
|
java.lang.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 |
Field Detail |
---|
private final java.lang.String objectName
Constructor Detail |
---|
public ObjectError(java.lang.String objectName, java.lang.String defaultMessage)
objectName
- the name of the affected objectdefaultMessage
- the default message to be used to resolve this messagepublic ObjectError(java.lang.String objectName, java.lang.String[] codes, java.lang.Object[] arguments, java.lang.String defaultMessage)
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 messageMethod Detail |
---|
public java.lang.String getObjectName()
public java.lang.String toString()
DefaultMessageSourceResolvable
resolvableToString()
.
toString
in class DefaultMessageSourceResolvable
DefaultMessageSourceResolvable.resolvableToString()
public boolean equals(java.lang.Object other)
equals
in class DefaultMessageSourceResolvable
public int hashCode()
hashCode
in class DefaultMessageSourceResolvable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |