ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientRuleScripter_Integer

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

public class ClientRuleScripter_Integer
extends AbstractClientRuleScripter

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


Method Summary
 string getMessageDef([string message='[runtime expression]'], [string valType='[runtime expression]'], [string locale=''])
          I generate the JS script required to display the appropriate failure message
private any getRuleDef(any validation)
          I return just the rule definition which is required for the generateAddRule method
 
Methods inherited from class ValidateThis.client.jQuery.AbstractClientRuleScripter
determineFailureMessage, generateAddMethod, generateAddRule, generateConditionJSON, generateRuleScript, generateRuleStruct, generateValidationJSON, generateValidationScript, getConditionDef, getCustomFailureMessage, getFailureArgs, getGeneratedFailureMessage, getParameterDef, getSafeSelectorScript, getValType, init, translate
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

getMessageDef

public string getMessageDef([string message='[runtime expression]'], [string valType='[runtime expression]'], [string locale=''])
I generate the JS script required to display the appropriate failure message.

Overrides:
getMessageDef in class AbstractClientRuleScripter
Parameters:
message
valType
locale

getRuleDef

private any getRuleDef(any validation)
I return just the rule definition which is required for the generateAddRule method.

Overrides:
getRuleDef in class AbstractClientRuleScripter
Parameters:
validation - The validation struct that describes the validation.

ValidateThis API Documentation