Class FieldValidationTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.FieldValidationTemplate
Template that may be used to quickly initialize a field validation definition.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
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.GUID
getId()
protected com.aquima.interactions.foundation.text.IMultilingualText
protected String
getType()
protected boolean
protected boolean
void
setBlocking
(boolean blocking) This method may be used to specify if this validation generates a blocking error, or a warning.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
setEssential
(boolean essential) This method may be used to specify if the validation must succeed in order to continue validating.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.composer.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
-
getId
protected com.aquima.interactions.foundation.GUID getId() -
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.
-
isBlocking
protected boolean isBlocking() -
setBlocking
public void setBlocking(boolean blocking) This method may be used to specify if this validation generates a blocking error, or a warning.- Parameters:
blocking
- Boolean indicating if the validation is blocking (error).
-
isEssential
protected boolean isEssential() -
setEssential
public void setEssential(boolean essential) This method may be used to specify if the validation must succeed in order to continue validating.- Parameters:
essential
- Boolean indicating that the validation is essential, and must be met in order to continue validating.
-
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.composer.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.
-