Class DomainDelegateDS

java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.metamodel.ds.delegate.DomainDelegateDS
All Implemented Interfaces:
IReportingDS, IDomainDS
Direct Known Subclasses:
DomainDS

public class DomainDelegateDS extends ReportingDelegateDS implements IDomainDS
Delegate datasource for easy datasource extension. All method calls are delegated to the delegate datasource without adding any functionality.
Since:
8.4.3
Author:
Jon van Leuven
  • Constructor Details

    • DomainDelegateDS

      public DomainDelegateDS(IDomainDS datasource)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IDomainDS
      This method should return the unique name of the domain.
      Specified by:
      getName in interface IDomainDS
      Returns:
      String containing the name of the domain.
    • getDataType

      public DataType getDataType()
      Description copied from interface: IDomainDS
      The data type of the domain. The domain can only be active for attributes that share the same type, and all values of this domain will need to be of the same data type.
      Specified by:
      getDataType in interface IDomainDS
      Returns:
      The type of the values of this domain.
    • getDescription

      public String getDescription()
      Description copied from interface: IDomainDS
      This method returns the (optional) description of the domain.
      Specified by:
      getDescription in interface IDomainDS
      Returns:
      Description of the domain. (only used for informational purposes)
    • allowEmptyDomain

      public boolean allowEmptyDomain()
      Description copied from interface: IDomainDS
      This method specifies if the domain should allow the datasource to return an empty set of domain values. By default this method should return false, as a domain without any valid values will not allow any value for the attributes the domain is assigned to. During development this method may however return the value true to indicate that an empty domain is allowed. When an empty domain is encountered and this method returns true for that domain, a warning will be generated indicating that the domain should be fixed.
      Specified by:
      allowEmptyDomain in interface IDomainDS
      Returns:
      Boolean indicating if an empty domain is allowed.
    • isExternalDomain

      public boolean isExternalDomain()
      Description copied from interface: IDomainDS
      This method returns a boolean indicating if the values for the domain will be provided by an external source. The boolean is used mainly for validation purposes, as an external domain will not have any values during definition in studio.
      Specified by:
      isExternalDomain in interface IDomainDS
      Returns:
      a boolean indicating if the values for the domain will be provided by an external source.
    • iterateValues

      public void iterateValues(IDomainValueVisitor visitor)
      Description copied from interface: IDomainDS
      This method should iterate over all values that are valid in the domain, and invoke the visitor for each one of them.
      Specified by:
      iterateValues in interface IDomainDS
      Parameters:
      visitor - The visitor that the domain values should be added to.