ValidateThis API Documentation

ValidateThis.core
Class MessageHelper

WEB-INF.cftags.component
        extended by ValidateThis.core.MessageHelper

public class MessageHelper
extends WEB-INF.cftags.component

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

init

Public init(any rbTranslator, string defaultFailureMessagePrefix)
I am the constructor

Parameters:
rbTranslator
defaultFailureMessagePrefix
Method Detail

createDefaultFailureMessage

private string createDefaultFailureMessage(any FailureMessage)
I prepend the defaultFailureMessagePrefix to a message.

Parameters:
FailureMessage - A Failure message to add to.

getGeneratedFailureMessage

public 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.

Parameters:
msgKey - The key for the message in the resource bundle.
args
locale
addPrefix

messageFormat

public string messageFormat(string thisPattern, any args, [any thisLocale='en_US'])
performs messageFormat on compound rb string

Parameters:
thisPattern - pattern to use in formatting
args - substitution values
thisLocale - locale to use in formatting, defaults to en_US

ValidateThis API Documentation