Class FieldValidationDefinition
java.lang.Object
com.aquima.interactions.communication.impl.FieldValidationDefinition
- All Implemented Interfaces:
IFieldValidationDefinition
,Serializable
Internal IFieldDefinition implementation that uses a datasource for construction.
- Since:
- 9.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FieldValidationDefinition
(IFieldValidationDS datasource, IRuleEngine ruleEngine, AttributeReference attribute) protected
FieldValidationDefinition
(IValidationRule validationRule) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the condition that should be evaluated to determine if the validation should be active.This method returns the validation message.This method returns the validation rule that should be evaluated for the field.This method returns the validator that should be evaluated for the field.
-
Constructor Details
-
FieldValidationDefinition
protected FieldValidationDefinition(IFieldValidationDS datasource, IRuleEngine ruleEngine, AttributeReference attribute) throws InitializationException - Throws:
InitializationException
-
FieldValidationDefinition
-
-
Method Details
-
getCondition
Description copied from interface:IFieldValidationDefinition
This method returns the condition that should be evaluated to determine if the validation should be active.- Specified by:
getCondition
in interfaceIFieldValidationDefinition
- Returns:
- the condition that should be evaluated to determine if the validation should be active, may be null.
-
getMessage
Description copied from interface:IFieldValidationDefinition
This method returns the validation message.- Specified by:
getMessage
in interfaceIFieldValidationDefinition
- Returns:
- The validation message, never null.
-
getValidationRule
Description copied from interface:IFieldValidationDefinition
This method returns the validation rule that should be evaluated for the field. When this method returns null, getValidator should return a value.- Specified by:
getValidationRule
in interfaceIFieldValidationDefinition
- Returns:
- The validation rule, may be null.
-
getValidator
Description copied from interface:IFieldValidationDefinition
This method returns the validator that should be evaluated for the field. When this method returns null, getValidationRule should return a value.- Specified by:
getValidator
in interfaceIFieldValidationDefinition
- Returns:
- The validator rule, may be null.
-