ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientRuleScripter_Regex

WEB-INF.cftags.component
        extended by ValidateThis.client.jQuery.AbstractClientRuleScripter
            extended by ValidateThis.client.jQuery.ClientRuleScripter_Regex

public class ClientRuleScripter_Regex
extends AbstractClientRuleScripter

I am responsible for generating JS code for the regex validation.


Method Summary
 any generateInitScript([string defaultMessage='The value entered does not match the specified pattern ({0})'])
          I generate the validation 'method' function for the client during fw initialization
 any getParameterDef(any validation)
          I override the parameter def because the VT param names do not match those expected by the jQuery plugin
 
Methods inherited from class ValidateThis.client.jQuery.AbstractClientRuleScripter
determineFailureMessage, generateAddMethod, generateAddRule, generateConditionJSON, generateRuleScript, generateRuleStruct, generateValidationJSON, generateValidationScript, getConditionDef, getCustomFailureMessage, getFailureArgs, getGeneratedFailureMessage, getMessageDef, getRuleDef, getSafeSelectorScript, getValType, init, translate
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

generateInitScript

public any generateInitScript([string defaultMessage='The value entered does not match the specified pattern ({0})'])
I generate the validation 'method' function for the client during fw initialization.

Parameters:
defaultMessage

getParameterDef

public any getParameterDef(any validation)
I override the parameter def because the VT param names do not match those expected by the jQuery plugin.

Overrides:
getParameterDef in class AbstractClientRuleScripter
Parameters:
validation - The validation object that describes the validation.

ValidateThis API Documentation