Class FieldValidationTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.FieldValidationTemplate
This class may be used to quickly initialize a model.
- Since:
- 9.0
- Author:
- Jon van Leuven, Arjan Pragt
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FieldValidationTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String key, String paramValue) This method may be used to add a parameter value for the validator.protected String
protected com.aquima.interactions.foundation.text.IMultilingualText
protected String
getType()
void
setCondition
(String condition) This method may be used to specify the condition that should be evaluated to determine if the validation is active.void
setMessage
(com.aquima.interactions.foundation.text.IMultilingualText message) This method may be used to specify the message that should be used when the validation fails.void
setMessage
(String message) This method may be used to specify the message that should be used when the validation fails.com.aquima.interactions.communication.ds.IFieldValidationDS
This method converts the template to a data source that can be used to initialize a field validation.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
FieldValidationTemplate
protected FieldValidationTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String type)
-
-
Method Details
-
getType
-
getCondition
-
setCondition
This method may be used to specify the condition that should be evaluated to determine if the validation is active.- Parameters:
condition
- the condition that should be evaluated to determine if the validation is active.
-
getMessage
protected com.aquima.interactions.foundation.text.IMultilingualText getMessage() -
setMessage
This method may be used to specify the message that should be used when the validation fails.- Parameters:
message
- the message that should be used when the validation fails.
-
setMessage
public void setMessage(com.aquima.interactions.foundation.text.IMultilingualText message) This method may be used to specify the message that should be used when the validation fails.- Parameters:
message
- the message that should be used when the validation fails.
-
addParameter
This method may be used to add a parameter value for the validator.- Parameters:
key
- The name of the parameter.paramValue
- The value for the parameter.
-
getParameters
-
toDataSource
public com.aquima.interactions.communication.ds.IFieldValidationDS toDataSource()This method converts the template to a data source that can be used to initialize a field validation.- Returns:
- a data source that can be used to initialize a field validation.
-