ValidateThis API Documentation

ValidateThis
Class ValidateThis

WEB-INF.cftags.component
        extended by ValidateThis.ValidateThis
Direct Known Subclasses:
ModelGlueValidationService

public class ValidateThis
extends WEB-INF.cftags.component

I accept a BO and use the framework to validate it.


Constructor Summary
init([any ValidateThisConfig='[runtime expression]'])
          I build a new ValidateThis
 
Method Summary
 void clearValidators()
 any createWrapper(any theObject)
 any determineObjectType()
          I try to determine the object type by looking at objectType and theObject arguments
 any evaluateExpression(any expression)
          I dynamically evaluate an expression and return the result
 any getBean([Any BeanName])
          I am used to allow the facade to ask the factory for beans
 any getClientRuleScripters()
 any getInitializationScript([any JSLib='[runtime expression]'], [Any JSIncludes='[runtime expression]'], [Any locale='[runtime expression]'], [string format='script'])
          I generate JS statements required to setup client-side validations for VT
 any getSRV(any validator)
 any getServerRuleValidators([any validator=''])
 any getVTFolder()
          returns the name of the folder in which VT is installed
 any getValidateThisConfig()
 any getValidator([any objectType=''], [any definitionPath=''], [any theObject=''])
 any getValidatorNames()
 any getVersion()
 any loadValidators(any objectList)
 any newResult()
          I create a Result object
 Any onMissingMethod(any missingMethodName, any missingMethodArguments)
          This is used to help communicate with the BOValidator, which is accessed via the ValidationFactory when needed
 boolean testCondition(any Condition)
          I dynamically evaluate a condition and return true or false
 any validate(any theObject, [any objectType=''], [any Context=''], [any Result=''], [array objectList='[runtime expression]'], [string debuggingMode='[runtime expression]'], [boolean ignoreMissingProperties='false'], [string locale='[runtime expression]'])
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init([any ValidateThisConfig='[runtime expression]'])
I build a new ValidateThis

Parameters:
ValidateThisConfig
Method Detail

clearValidators

public void clearValidators()


createWrapper

public any createWrapper(any theObject)

Parameters:
theObject

determineObjectType

public any determineObjectType()
I try to determine the object type by looking at objectType and theObject arguments.


evaluateExpression

Public any evaluateExpression(any expression)
I dynamically evaluate an expression and return the result.

Parameters:
expression

getBean

public any getBean([Any BeanName])
I am used to allow the facade to ask the factory for beans

Parameters:
BeanName

getClientRuleScripters

public any getClientRuleScripters()


getInitializationScript

public any getInitializationScript([any JSLib='[runtime expression]'], [Any JSIncludes='[runtime expression]'], [Any locale='[runtime expression]'], [string format='script'])
I generate JS statements required to setup client-side validations for VT.

Parameters:
JSLib
JSIncludes
locale
format -

getSRV

public any getSRV(any validator)

Parameters:
validator

getServerRuleValidators

public any getServerRuleValidators([any validator=''])

Parameters:
validator

getVTFolder

public any getVTFolder()
returns the name of the folder in which VT is installed


getValidateThisConfig

public any getValidateThisConfig()


getValidator

public any getValidator([any objectType=''], [any definitionPath=''], [any theObject=''])

Parameters:
objectType
definitionPath
theObject

getValidatorNames

public any getValidatorNames()


getVersion

public any getVersion()


loadValidators

public any loadValidators(any objectList)

Parameters:
objectList

newResult

public any newResult()
I create a Result object.


onMissingMethod

public Any onMissingMethod(any missingMethodName, any missingMethodArguments)
This is used to help communicate with the BOValidator, which is accessed via the ValidationFactory when needed

Parameters:
missingMethodName
missingMethodArguments

testCondition

Public boolean testCondition(any Condition)
I dynamically evaluate a condition and return true or false.

Parameters:
Condition

validate

public any validate(any theObject, [any objectType=''], [any Context=''], [any Result=''], [array objectList='[runtime expression]'], [string debuggingMode='[runtime expression]'], [boolean ignoreMissingProperties='false'], [string locale='[runtime expression]'])

Parameters:
theObject
objectType
Context
Result
objectList
debuggingMode
ignoreMissingProperties
locale

ValidateThis API Documentation