ValidateThis API Documentation

ValidateThis.server
Class AbstractServerRuleValidator

WEB-INF.cftags.component
        extended by ValidateThis.server.AbstractServerRuleValidator
Direct Known Subclasses:
ServerRuleValidator_Boolean , ServerRuleValidator_CollectionSize , ServerRuleValidator_Custom , ServerRuleValidator_Date , ServerRuleValidator_DateRange , ServerRuleValidator_DoesNotContainOtherProperties , ServerRuleValidator_Email , ServerRuleValidator_EqualTo , ServerRuleValidator_Expression , ServerRuleValidator_False , ServerRuleValidator_FutureDate , ServerRuleValidator_InList , ServerRuleValidator_Integer , ServerRuleValidator_IsValidObject , ServerRuleValidator_Max , ServerRuleValidator_MaxLength , ServerRuleValidator_Min , ServerRuleValidator_MinLength , ServerRuleValidator_MinPatternsMatch , ServerRuleValidator_NotInList , ServerRuleValidator_Numeric , ServerRuleValidator_PastDate , ServerRuleValidator_Range , ServerRuleValidator_RangeLength , ServerRuleValidator_Regex , ServerRuleValidator_Required , ServerRuleValidator_Time , ServerRuleValidator_True , ServerRuleValidator_URL , ServerRuleValidator_noHTML

public class AbstractServerRuleValidator
extends WEB-INF.cftags.component

I am an abstract validator responsible for performing one specific type of validation.


Constructor Summary
init(any messageHelper, string defaultFailureMessagePrefix)
          I build a new ServerRuleValidator
 
Method Summary
private void fail(any validation, any FailureMessage)
          I do what needs to be done when a validation fails
private void failWithResult(any validation, any result)
          I do what needs to be done when a validation fails
private boolean propertyIsRequired(any validation)
          I determine whether the current property is required
private boolean shouldTest(any validation)
          I determine whether the test should be performed, based on optionality and empty value
 void validate(any validation, string locale)
          I perform the validation returning info in the validation object
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any messageHelper, string defaultFailureMessagePrefix)
I build a new ServerRuleValidator

Parameters:
messageHelper
defaultFailureMessagePrefix
Method Detail

fail

private void fail(any validation, any FailureMessage)
I do what needs to be done when a validation fails.

Parameters:
validation - The validation object being used to perform the validation.
FailureMessage - A Failure message to store.

failWithResult

private void failWithResult(any validation, any result)
I do what needs to be done when a validation fails.

Parameters:
validation - The validation object being used to perform the validation.
result - A Result to store.

propertyIsRequired

private boolean propertyIsRequired(any validation)
I determine whether the current property is required.

Parameters:
validation - The validation object being used to perform the validation.

shouldTest

private boolean shouldTest(any validation)
I determine whether the test should be performed, based on optionality and empty value.

Parameters:
validation - The validation object being used to perform the validation.

validate

public void validate(any validation, string locale)
I perform the validation returning info in the validation object.

Parameters:
validation - The validation object being used to perform the validation.
locale - The locale to use to generate the default failure message.

ValidateThis API Documentation