@Entity public class Message extends PersistableBusinessObjectBaseAdapter
extension, newCollectionRecord
objectId, versionNumber
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
String |
getComponentCode()
A code within the namespace that identifies a component or group, used for further grouping
of messages within the namespace
|
String |
getDescription()
A description for the message
|
String |
getKey()
A key that uniquely identifies the message within the namespace and component
|
String |
getLocale()
Locale code the message is represented for, used for supporting messages in different
languages
|
String |
getNamespaceCode()
Namespace code (often an application or module code) that message is associated with, used for
grouping messages
|
String |
getText()
Text value for the message
|
void |
setComponentCode(String componentCode)
Setter for the component code the message should be associated with
|
void |
setDescription(String description)
Setter for the message description
|
void |
setKey(String key)
Setter for the message key
|
void |
setLocale(String locale)
Setter for the message locale code
|
void |
setNamespaceCode(String namespaceCode)
Setter for the namespace code the message should be associated with
|
void |
setText(String text)
Setter for the message text
|
String |
toString()
Generate toString using message key fields
|
buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord
generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, prePersist, preUpdate, setExtensionObject, setObjectId, setVersionNumber
public Message()
public String getNamespaceCode()
public void setNamespaceCode(String namespaceCode)
namespaceCode
- public String getComponentCode()
Examples here could be a bean id, the class name of an object, or any application/module defined code
public void setComponentCode(String componentCode)
componentCode
- public String getKey()
Within the UIF, this is generally used to indicate the property path the message is associated with (for example: "control.label"). For validation messages this is generally a combination that identifies the type of validation message and the validation performed (for example: "error.account.missing")
public String getLocale()
public void setLocale(String locale)
locale
- public String getDescription()
Not used by the framework, here for purposes of editing of messages and providing a description of the message to users
public void setDescription(String description)
description
- public String getText()
This holds the actual text for the message which is what will be displayed. Depending on how the message is being used it might contain parameters or other special syntax
public final String toString()
toString
in class DataObjectBase
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.