Class FieldValidationDelegateDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.composer.ds.delegate.FieldValidationDelegateDS
- All Implemented Interfaces:
IFieldValidationDS
,IReportingDS
- Direct Known Subclasses:
FieldValidationDS
Delegate datasource for easy datasource extension. All method calls are delegated to the delegate datasource without
adding any functionality.
- Since:
- 8.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionFieldValidationDelegateDS
(IFieldValidationDS datasource) Construct a datasource that delegates all method calls to the provided datasource. -
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 text that should be shown when a value does not pass the validation.getType()
this method return the name of the validator type.boolean
This method returns a boolean indicating if the validation is blocking (or a warning).boolean
This method returns a boolean indicating if the validation may be considered a fatal error, and further validation of the value is not needed.void
This method returns a map containing parameters for the validator.Methods inherited from class com.aquima.interactions.foundation.report.ReportingDelegateDS
addMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
FieldValidationDelegateDS
Construct a datasource that delegates all method calls to the provided datasource.- Parameters:
datasource
- The delegate datasource, may not be null
-
-
Method Details
-
getType
Description copied from interface:IFieldValidationDS
this method return the name of the validator type.- Specified by:
getType
in interfaceIFieldValidationDS
- Returns:
- the name of the validator type.
-
isBlocking
public boolean isBlocking()Description copied from interface:IFieldValidationDS
This method returns a boolean indicating if the validation is blocking (or a warning).- Specified by:
isBlocking
in interfaceIFieldValidationDS
- Returns:
- boolean indicating if the validation is blocking.
-
isEssential
public boolean isEssential()Description copied from interface:IFieldValidationDS
This method returns a boolean indicating if the validation may be considered a fatal error, and further validation of the value is not needed.- Specified by:
isEssential
in interfaceIFieldValidationDS
- Returns:
- Boolean indicating that the validation is essential and must succeed for any further validation to be useful.
-
getMessage
Description copied from interface:IFieldValidationDS
This method returns the text that should be shown when a value does not pass the validation. The text may contain TSL, but the message will be expanded before the (invalid) value is evaluated.- Specified by:
getMessage
in interfaceIFieldValidationDS
- Returns:
- text that should be shown when a value does not pass the validation.
-
getCondition
Description copied from interface:IFieldValidationDS
This method returns the condition that should be evaluated to determine if the validation should be active.- Specified by:
getCondition
in interfaceIFieldValidationDS
- Returns:
- the condition that should be evaluated to determine if the validation should be active.
-
iterateParameters
Description copied from interface:IFieldValidationDS
This method returns a map containing parameters for the validator. If the validator does not require any parameters.- Specified by:
iterateParameters
in interfaceIFieldValidationDS
- Parameters:
visitor
- the visitor which accepts the parameter information
-