org.kuali.rice.krad.util
Class ErrorMessage

java.lang.Object
  extended by org.kuali.rice.krad.util.ErrorMessage
All Implemented Interfaces:
Serializable

public class ErrorMessage
extends Object
implements Serializable

Contains the error message key and parameters for a specific instantiation of an error message.

See Also:
Serialized Form

Constructor Summary
ErrorMessage()
          Default constructor, required by AutoPopulatingList
ErrorMessage(String errorKey, String... messageParameters)
          Convenience constructor which sets both fields
 
Method Summary
 boolean equals(Object obj)
           
 String getErrorKey()
           
 String[] getMessageParameters()
           
 int hashCode()
          Defined because when you redefine equals, you must redefine hashcode.
 void setErrorKey(String errorKey)
           
 void setMessageParameters(String[] messageParameters)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorMessage

public ErrorMessage()
Default constructor, required by AutoPopulatingList


ErrorMessage

public ErrorMessage(String errorKey,
                    String... messageParameters)
Convenience constructor which sets both fields

Parameters:
errorKey -
messageParameters -
Method Detail

setErrorKey

public void setErrorKey(String errorKey)

getErrorKey

public String getErrorKey()

setMessageParameters

public void setMessageParameters(String[] messageParameters)

getMessageParameters

public String[] getMessageParameters()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Defined because when you redefine equals, you must redefine hashcode.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.