|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.formproc.message.AbstractMessageProvider | +--org.formproc.message.InlineMessageProvider
Implementation of the MessageProvider interface which expects the messages to be stored inline in the configuration information.
Constructor Summary | |
InlineMessageProvider()
Default constructor. |
Method Summary | |
java.lang.String |
getMessage(java.util.Locale locale)
Get the message for the given locale. |
java.lang.String |
getMessageElementName()
Get the element name which is used for finding the inline messages. |
void |
loadConfiguration(com.anthonyeden.lib.config.Configuration configuration)
Load the message provider's configuration. |
void |
setMessageElementName(java.lang.String messageElementName)
Set the element name which is used for finding the inline messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InlineMessageProvider()
Method Detail |
public java.lang.String getMessage(java.util.Locale locale) throws java.lang.Exception
getMessage
in interface MessageProvider
getMessage
in class AbstractMessageProvider
locale
- The Locale
java.lang.Exception
public java.lang.String getMessageElementName()
public void setMessageElementName(java.lang.String messageElementName)
messageElementName
- The new message element namepublic void loadConfiguration(com.anthonyeden.lib.config.Configuration configuration) throws com.anthonyeden.lib.config.ConfigurationException
loadConfiguration
in interface MessageProvider
loadConfiguration
in class AbstractMessageProvider
configuration
- The Configuration object
ConfiguratioinException
com.anthonyeden.lib.config.ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |