ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientRuleScripter_DoesNotContainOtherProperties

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

public class ClientRuleScripter_DoesNotContainOtherProperties
extends AbstractClientRuleScripter

Fails if the validated property contains the value of another property


Method Summary
 any generateInitScript([string defaultMessage='The value cannot not contain the value of another property.'])
          I generate the validation 'method' function for the client during fw initialization
private array getFailureArgs(any parameters)
          I provide arguments needed to generate the failure message
 string getParameterDef([any validation])
          I generate the JS script required to pass the appropriate paramters to the validator method
 
Methods inherited from class ValidateThis.client.jQuery.AbstractClientRuleScripter
determineFailureMessage, generateAddMethod, generateAddRule, generateConditionJSON, generateRuleScript, generateRuleStruct, generateValidationJSON, generateValidationScript, getConditionDef, getCustomFailureMessage, 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 cannot not contain the value of another property.'])
I generate the validation 'method' function for the client during fw initialization.

Parameters:
defaultMessage

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.

getParameterDef

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

Overrides:
getParameterDef in class AbstractClientRuleScripter
Parameters:
validation

ValidateThis API Documentation