contentbox.modules.contentbox-deps.modules.cborm.modules.cbvalidation.models.validators

Interface IValidator

contentbox.modules.contentbox-deps.modules.cborm.modules.cbvalidation.models.validators.IValidator

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

Class Attributes:
None
Method Summary
string getName()
     Get the name of the validator.
boolean validate(cbvalidation.models.result.ivalidationresult validationResult, any target, string field, [any targetValue], [any validationData])
     Will check if an incoming value validates.

Method Detail

getName

public string getName()

Get the name of the validator


validate

public boolean validate(cbvalidation.models.result.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