com.interface21.validation
Class ObjectError

java.lang.Object
  |
  +--com.interface21.context.support.MessageSourceResolvableImpl
        |
        +--com.interface21.validation.ObjectError
All Implemented Interfaces:
MessageSourceResolvable, java.io.Serializable
Direct Known Subclasses:
FieldError

public class ObjectError
extends MessageSourceResolvableImpl

Encapsulates an object error, i.e. a global reason for rejection.

Normally, an ObjectError has a single code for message resolution.

Since:
10.03.2003
Author:
Juergen Hoeller
See Also:
FieldError, Serialized Form

Constructor Summary
protected ObjectError(java.lang.String objectName, java.lang.String[] codes, java.lang.Object[] args, java.lang.String defaultMessage)
          Create a new ObjectError instance, using multiple codes.
  ObjectError(java.lang.String objectName, java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage)
          Create a new ObjectError instance, using a default code.
 
Method Summary
 java.lang.String getObjectName()
           
 java.lang.String toString()
           
 
Methods inherited from class com.interface21.context.support.MessageSourceResolvableImpl
getArgs, getCode, getCodes, getDefaultMessage, resolvableToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectError

protected ObjectError(java.lang.String objectName,
                      java.lang.String[] codes,
                      java.lang.Object[] args,
                      java.lang.String defaultMessage)
Create a new ObjectError instance, using multiple codes.

This is only meant to be used by subclasses like FieldError.

See Also:
MessageSourceResolvable.getCodes()

ObjectError

public ObjectError(java.lang.String objectName,
                   java.lang.String code,
                   java.lang.Object[] args,
                   java.lang.String defaultMessage)
Create a new ObjectError instance, using a default code.
Method Detail

getObjectName

public java.lang.String getObjectName()

toString

public java.lang.String toString()
Overrides:
toString in class MessageSourceResolvableImpl


Rod Johnson and Spring contributors 2001-2003.