Class DomainTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.model.DomainTemplate

public class DomainTemplate extends AbstractReportingTemplate
Template class that can be used to initialize a domain definition.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • DomainTemplate

      public DomainTemplate(String name)
      Constructs the template with the required parameters.
      Parameters:
      name - The name of the domain.
    • DomainTemplate

      public DomainTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name)
      Constructs the template with the required parameters.
      Parameters:
      report - The initialization report that should be used to add errors and warnings to.
      name - The name of the domain.
  • Method Details

    • isExternal

      protected boolean isExternal()
    • setExternal

      public void setExternal(boolean isExternal)
      This method sets the isExternal flag for this domain template.
      Parameters:
      isExternal - boolean flag.
    • getName

      protected String getName()
    • getValues

      protected Iterator<DomainValueTemplate> getValues()
    • addValue

      public DomainValueTemplate addValue(com.aquima.interactions.foundation.IPrimitiveValue value, com.aquima.interactions.foundation.text.IMultilingualText description)
      This method may be used to add a value to the domain.
      Parameters:
      value - The value that should be added.
      description - The description (display text) of the value.
    • addValue

      public DomainValueTemplate addValue(String value, String description)
      This method may be used to add a value to the domain.
      Parameters:
      value - The value that should be added.
      description - The description (display text) of the value.
    • addValue

      public DomainValueTemplate addValue(String value, com.aquima.interactions.foundation.text.IMultilingualText description)
      This method may be used to add a value to the domain.
      Parameters:
      value - The value that should be added.
      description - The description (display text) of the value.
    • toDataSource

      public com.aquima.interactions.metamodel.ds.IDomainDS toDataSource()
      This method converts the template to a data source that can be used to initialize a domain definition.
      Returns:
      a data source that can be used to initialize a domain definition.
    • getDataType

      protected com.aquima.interactions.foundation.DataType getDataType()
    • setDataType

      public void setDataType(com.aquima.interactions.foundation.DataType type)
      This method set the datatype of the domain.
      Parameters:
      type - The datatype