Class FieldValidationTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.FieldValidationTemplate

public class FieldValidationTemplate extends AbstractReportingTemplate
This class may be used to quickly initialize a model.
Since:
9.0
Author:
Jon van Leuven, Arjan Pragt
  • Constructor Details

    • FieldValidationTemplate

      protected FieldValidationTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String type)
  • Method Details

    • getType

      protected String getType()
    • getCondition

      protected String getCondition()
    • setCondition

      public void setCondition(String condition)
      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

      public void setMessage(String 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.
    • 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

      public void addParameter(String key, String paramValue)
      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

      protected Map<String,String> 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.