Class FieldDelegateDS

java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.composer.ds.delegate.FieldDelegateDS
All Implemented Interfaces:
IElementDS, IFieldDS, IReportingDS
Direct Known Subclasses:
FieldDS

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

    • FieldDelegateDS

      public FieldDelegateDS(IFieldDS datasource)
      Construct a datasource that delegates all method calls to the provided datasource.
      Parameters:
      datasource - The delegate visitor, may not be null
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Description copied from interface: IFieldDS
      This method returns the name of the attribute the field is defined for. The attribute name should consist of both the entity type and the actual name of the attribute (seperated by a dot).
      Specified by:
      getAttributeName in interface IFieldDS
      Returns:
      The name of the attribute the field is defined for.
    • getName

      public String getName()
      Description copied from interface: IElementDS
      This method returns the (unique) name of the element. The name is required when adding the content as a definition to the composer, but it is optional when the element is added directly as inline sub-content.
      Specified by:
      getName in interface IElementDS
      Returns:
      the (unique) name of the element.
    • getDataType

      public DataType getDataType()
      Description copied from interface: IFieldDS
      This method returns the data type of the field.
      Specified by:
      getDataType in interface IFieldDS
      Returns:
      The data type of the field.
    • getQuestionText

      public IMultilingualText getQuestionText()
      Description copied from interface: IFieldDS
      The question text associated with this field. This text may contain plain TSL.
      Specified by:
      getQuestionText in interface IFieldDS
      Returns:
      The question text associated with this field.
    • getPresentationStyles

      public String[] getPresentationStyles()
      Description copied from interface: IElementDS
      This method returns the presentation styles that should be used when including the content element that is referred to.
      Specified by:
      getPresentationStyles in interface IElementDS
      Returns:
      the presentation styles that should be used when including the content element that is referred to.
    • getExplainText

      public IMultilingualText getExplainText()
      Description copied from interface: IFieldDS
      The explain text associated with this field. This text may contain plain TSL.
      Specified by:
      getExplainText in interface IFieldDS
      Returns:
      The explain text associated with this field.
    • isMultivalue

      public boolean isMultivalue()
      Description copied from interface: IFieldDS
      Returns the cardinality of the field-values.
      Specified by:
      isMultivalue in interface IFieldDS
      Returns:
      the cardinality of the field-values
    • getRequiredCondition

      public String getRequiredCondition()
      Description copied from interface: IFieldDS
      The condition that will determine if the element is required or not. Usually this condition will contain 'null' (not required), but is may also contain a complex expression returning a boolean. The required condition is at the moment only relevant for references to field elements.
      Specified by:
      getRequiredCondition in interface IFieldDS
      Returns:
      The condition that will determine if the element is required or not.
    • iterateValidations

      public void iterateValidations(IFieldValidationVisitor visitor)
      Description copied from interface: IFieldDS
      This method should iterate over all the validations that should be present on the field, and add the information for them to the provided visitor.
      Specified by:
      iterateValidations in interface IFieldDS
      Parameters:
      visitor - The visitor that should be used to add the validations to.
    • iterateParameterValues

      public void iterateParameterValues(IGlobalParameterValueVisitor visitor)
      Description copied from interface: IFieldDS
      Iterates over all parameters of the field and adds each parameter to the provided visitor.
      Specified by:
      iterateParameterValues in interface IFieldDS
      Parameters:
      visitor - the visitor that receives the field's parameters