coldbox.system.validation.validators

Interface IValidator

WEB-INF.cftags.interface
        extended by cachebox.build-coldbox.coldbox.system.validation.validators.IValidator
Class Attributes:
None

******************************************************************************* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* The ColdBox validator interface, all inspired by awesome Hyrule Validation Framework by Dan Vega

Method Summary
string getName()
     Get the name of the validator.
boolean validate(IValidationResult validationResult, any target, string field, [any targetValue], [any validationData])
     Will check if an incoming value validates.
 
Methods inherited from class WEB-INF.cftags.interface
None

Method Detail

getName

public string getName()

Get the name of the validator


validate

public boolean validate(IValidationResult validationResult, any target, string field, [any targetValue], [any validationData])

Will check if an incoming value validates

Parameters:
validationResult - The result object of the validation
target - The target object to validate on
field - The field on the target object to validate on
targetValue - The target value to validate
validationData