Class ReportingFieldValidationDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.composer.report.ReportingFieldValidationDS
- All Implemented Interfaces:
IFieldValidationDS
,IReportingDS
IFieldValidationDS implementation that adds error reporting.
- Author:
- r.fleuren
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ReportingFieldValidationDS
(IInitializationReport report, IFieldValidationDS 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.ReportingDS
addError, addMessage, getCategory, getReport
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
-
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
-