|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.util.ErrorMessage
public class ErrorMessage
Contains the error message key and parameters for a specific instantiation of an error message
Constructor Summary | |
---|---|
ErrorMessage()
Default constructor |
|
ErrorMessage(String errorKey,
String... messageParameters)
Convenience constructor which sets both fields |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getComponentCode()
A code within the namespace that identifies a component or group the error message is associated with |
String |
getErrorKey()
Gets the message key for this ErrorMessage |
String[] |
getMessageParameters()
Get the messageParameters which should be used when evaluating and generating the message for the ErrorMessage. |
String |
getMessagePrefixKey()
Gets the messagePrefixKey which defines the message key for the message to be prefixed to the message defined by errorKey. |
String[] |
getMessagePrefixParameters()
Get the messagePrefixParameters which should be used when evaluating and generating the message for the messagePrefixKey. |
String |
getMessageSuffixKey()
Gets the messageSuffixKey which defines the message key for the message to be appended to the message defined by errorKey. |
String[] |
getMessageSuffixParameters()
Get the messagePrefixParameters which should be used when evaluating and generating the message for the messageSuffixKey. |
String |
getNamespaceCode()
Namespace code (often an application or module code) the error message is associated with |
int |
hashCode()
Defined because when you redefine equals, you must redefine hashcode. |
void |
setComponentCode(String componentCode)
Setter for the error's associated component code |
void |
setErrorKey(String errorKey)
Sets the key to use to retrieve the message for this ErrorMessage |
void |
setMessageParameters(String[] messageParameters)
Sets the messageParameters for this ErrorMessage |
void |
setMessagePrefixKey(String messagePrefixKey)
Set the messagePrefixKey |
void |
setMessagePrefixParameters(String[] messagePrefixParameters)
Set the messagePrefixParameters |
void |
setMessageSuffixKey(String messageSuffixKey)
Set the messageSuffixKey |
void |
setMessageSuffixParameters(String[] messageSuffixParameters)
Set the messageSuffixParameters |
void |
setNamespaceCode(String namespaceCode)
Setter for the error's associated namespace code |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErrorMessage()
public ErrorMessage(String errorKey, String... messageParameters)
errorKey
- - message key for the errormessageParameters
- - zero or more parameters for the message textMethod Detail |
---|
public String getNamespaceCode()
Used with the component code and error key for retrieving the message text (and prefix, suffix). If null, the default namespace code will be used
public void setNamespaceCode(String namespaceCode)
namespaceCode
- public String getComponentCode()
Used with the namespace and error key for retrieving the message text (and prefix, suffix). If null, the default component code will be used
public void setComponentCode(String componentCode)
componentCode
- public void setErrorKey(String errorKey)
errorKey
- public String getErrorKey()
public void setMessageParameters(String[] messageParameters)
messageParameters
- public String[] getMessageParameters()
public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getMessagePrefixKey()
public void setMessagePrefixKey(String messagePrefixKey)
messagePrefixKey
- public String getMessageSuffixKey()
public void setMessageSuffixKey(String messageSuffixKey)
messageSuffixKey
- public String[] getMessagePrefixParameters()
public void setMessagePrefixParameters(String[] messagePrefixParameters)
messagePrefixParameters
- public String[] getMessageSuffixParameters()
public void setMessageSuffixParameters(String[] messageSuffixParameters)
messageSuffixParameters
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |