ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientRuleScripter_RangeLength

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

public class ClientRuleScripter_RangeLength
extends AbstractClientRuleScripter

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


Method Summary
private array getFailureArgs(any parameters)
          I provide arguments needed to generate the failure message
private any getRuleDef(any validation, any parameters)
          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, getGeneratedFailureMessage, getMessageDef, getParameterDef, getSafeSelectorScript, getValType, init, translate
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

getFailureArgs

private array getFailureArgs(any parameters)
I provide arguments needed to generate the failure message.

Overrides:
getFailureArgs in class AbstractClientRuleScripter
Parameters:
parameters - The parameters stored in the validation object.

getRuleDef

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

Overrides:
getRuleDef in class AbstractClientRuleScripter
Parameters:
validation - The validation object that describes the validation.
parameters - The parameters stored in the validation object.

ValidateThis API Documentation