ValidateThis API Documentation

ValidateThis.core
Class ValidationFactory

WEB-INF.cftags.component
        extended by ValidateThis.core.ValidationFactory

public class ValidationFactory
extends WEB-INF.cftags.component

I am _the_ factory object for ValidateThis, I also create BO Validators for the framework.


Constructor Summary
init(struct ValidateThisConfig)
          I build a new ValidationFactory
 
Method Summary
 void clearValidators()
 void createBOVsFromCFCs()
          I create BOVs from annotated CFCs
private any createValidator(any objectType, any definitionPath, any theObject, any componentPath)
 any createWrapper(any theObject)
 any evaluateExpression(any expression)
          I dynamically evaluate an expression and return the result
 any getBean([Any BeanName])
          I return a singleton
 any getClientRuleScripters(any JSLib)
 any getServerRuleValidators([any validator=''])
 any getValidator(any objectType, [any definitionPath=''], [any theObject=''], [any componentPath=''])
 any getValidatorNames()
 any loadValidators(any objectList)
 any newResult()
          I create a Result object
 boolean testCondition(any Condition)
          FOR MIXIN USE - I am here to dynamically evaluate a condition and return true or false
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(struct ValidateThisConfig)
I build a new ValidationFactory

Parameters:
ValidateThisConfig
Method Detail

clearValidators

public void clearValidators()


createBOVsFromCFCs

public void createBOVsFromCFCs()
I create BOVs from annotated CFCs


createValidator

private any createValidator(any objectType, any definitionPath, any theObject, any componentPath)

Parameters:
objectType
definitionPath
theObject - The object from which to read annotations, a blank means no object was passed
componentPath - The component path to the object - used to read annotations using getComponentMetadata

createWrapper

public any createWrapper(any theObject)

Parameters:
theObject

evaluateExpression

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

Parameters:
expression

getBean

public any getBean([Any BeanName])
I return a singleton

Parameters:
BeanName

getClientRuleScripters

public any getClientRuleScripters(any JSLib)

Parameters:
JSLib

getServerRuleValidators

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

Parameters:
validator

getValidator

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

Parameters:
objectType
definitionPath
theObject - The object from which to read annotations
componentPath - The component path to the object - used to read annotations using getComponentMetadata

getValidatorNames

public any getValidatorNames()


loadValidators

public any loadValidators(any objectList)

Parameters:
objectList

newResult

public any newResult()
I create a Result object.


testCondition

Public boolean testCondition(any Condition)
FOR MIXIN USE - I am here to dynamically evaluate a condition and return true or false.

Parameters:
Condition

ValidateThis API Documentation