ValidateThis API Documentation

ValidateThis.server
Class ServerValidator

WEB-INF.cftags.component
        extended by ValidateThis.server.ServerValidator

public class ServerValidator
extends WEB-INF.cftags.component

I orchestrate server side validations.


Constructor Summary
init(any childObjectFactory, any TransientFactory, any ObjectChecker, any EqualsHelper, any messageHelper, string ExtraRuleValidatorComponentPaths, string injectResultIntoBO, string defaultFailureMessagePrefix, string vtFolder, string defaultLocale)
          I build a new ServerValidator
 
Method Summary
private any determineFailureMessage(struct v, any theVal)
 any getRuleValidator(any RuleType)
 any getRuleValidators()
 any getVTResult()
          I get the VT Result object
private void setRuleValidators()
          I create rule validator objects from a list of component paths
 void setVTResult(any result)
          I set the VT Result object
 void validate(any BOValidator, any theObject, any Context, any Result, [array objectList='[runtime expression]'], [string debuggingMode='[runtime expression]'], [boolean ignoreMissingProperties='false'], [string locale='[runtime expression]'])
          I perform the validation returning info in the result object
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

Public init(any childObjectFactory, any TransientFactory, any ObjectChecker, any EqualsHelper, any messageHelper, string ExtraRuleValidatorComponentPaths, string injectResultIntoBO, string defaultFailureMessagePrefix, string vtFolder, string defaultLocale)
I build a new ServerValidator

Parameters:
childObjectFactory
TransientFactory
ObjectChecker
EqualsHelper
messageHelper
ExtraRuleValidatorComponentPaths
injectResultIntoBO
defaultFailureMessagePrefix
vtFolder
defaultLocale
Method Detail

determineFailureMessage

private any determineFailureMessage(struct v, any theVal)

Parameters:
v - The validation struct stored in the BOValidator
theVal - The validation object being used to perform the validation

getRuleValidator

public any getRuleValidator(any RuleType)

Parameters:
RuleType

getRuleValidators

public any getRuleValidators()


getVTResult

Public any getVTResult()
I get the VT Result object. I am injected into the BO if configured to do so.


setRuleValidators

private void setRuleValidators()
I create rule validator objects from a list of component paths


setVTResult

Public void setVTResult(any result)
I set the VT Result object. I am injected into the BO if configured to do so.

Parameters:
result

validate

public void validate(any BOValidator, any theObject, any Context, any Result, [array objectList='[runtime expression]'], [string debuggingMode='[runtime expression]'], [boolean ignoreMissingProperties='false'], [string locale='[runtime expression]'])
I perform the validation returning info in the result object.

Parameters:
BOValidator
theObject
Context
Result
objectList
debuggingMode
ignoreMissingProperties
locale

ValidateThis API Documentation