|
ValidateThis API Documentation | ||||
| FRAMES | |||||
WEB-INF.cftags.component
ValidateThis.core.MessageHelper
public class MessageHelper
I am a transient Parameter object.
| Constructor Summary | |
|---|---|
init(any rbTranslator, string defaultFailureMessagePrefix)
I am the constructor |
|
| Method Summary | |
|---|---|
private string |
createDefaultFailureMessage(any FailureMessage)
I prepend the defaultFailureMessagePrefix to a message |
string |
getGeneratedFailureMessage(string msgKey, [array args='[runtime expression]'], [string locale='[runtime expression]'], [boolean addPrefix='true'])
I retrieve the default failure message from the resource bundle and do text replacement |
string |
messageFormat(string thisPattern, any args, [any thisLocale='en_US'])
performs messageFormat on compound rb string |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
Public init(any rbTranslator, string defaultFailureMessagePrefix)
rbTranslatordefaultFailureMessagePrefix| Method Detail |
|---|
private string createDefaultFailureMessage(any FailureMessage)
FailureMessage - A Failure message to add to.public string getGeneratedFailureMessage(string msgKey, [array args='[runtime expression]'], [string locale='[runtime expression]'], [boolean addPrefix='true'])
msgKey - The key for the message in the resource bundle.argslocaleaddPrefixpublic string messageFormat(string thisPattern, any args, [any thisLocale='en_US'])
thisPattern - pattern to use in formattingargs - substitution valuesthisLocale - locale to use in formatting, defaults to en_US
|
ValidateThis API Documentation | ||||
| FRAMES | |||||