ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientRuleScripter_Required

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

public class ClientRuleScripter_Required
extends AbstractClientRuleScripter

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


Method Summary
private any determineFailureMessage(any validation, string locale)
          I determin the actual failure message to be used
 any generateRuleScript(any validation, string locale, [string selector=''])
          I generate the JS script required to implement a validation
 any generateRuleStruct(any validation, Any locale, Any selector)
          I generate the JS script required to implement a validation
 string getConditionDef([any validation])
          I generate the JS script required to pass the appropriate depends conditions to the validator method
 
Methods inherited from class ValidateThis.client.jQuery.AbstractClientRuleScripter
generateAddMethod, generateAddRule, generateConditionJSON, generateValidationJSON, generateValidationScript, getCustomFailureMessage, getFailureArgs, getGeneratedFailureMessage, getMessageDef, getParameterDef, getRuleDef, getSafeSelectorScript, getValType, init, translate
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

determineFailureMessage

private any determineFailureMessage(any validation, string locale)
I determin the actual failure message to be used.

Overrides:
determineFailureMessage in class AbstractClientRuleScripter
Parameters:
validation - The validation object that describes the validation.
locale - The locale to use to generate the default failure message.

generateRuleScript

public any generateRuleScript(any validation, string locale, [string selector=''])
I generate the JS script required to implement a validation.

Overrides:
generateRuleScript in class AbstractClientRuleScripter
Parameters:
validation - The validation struct that describes the validation.
locale
selector

generateRuleStruct

public any generateRuleStruct(any validation, Any locale, Any selector)
I generate the JS script required to implement a validation.

Overrides:
generateRuleStruct in class AbstractClientRuleScripter
Parameters:
validation - The validation object that describes the validation.
locale
selector

getConditionDef

public string getConditionDef([any validation])
I generate the JS script required to pass the appropriate depends conditions to the validator method.

Overrides:
getConditionDef in class AbstractClientRuleScripter
Parameters:
validation

ValidateThis API Documentation