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
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 Summary
ConstructorsConstructorDescriptionFieldDelegateDS
(IFieldDS datasource) Construct a datasource that delegates all method calls to the provided datasource. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of the attribute the field is defined for.This method returns the data type of the field.The explain text associated with this field.getName()
This method returns the (unique) name of the element.String[]
This method returns the presentation styles that should be used when including the content element that is referred to.The question text associated with this field.The condition that will determine if the element is required or not.boolean
Returns the cardinality of the field-values.void
Iterates over all parameters of the field and adds each parameter to the provided visitor.void
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.Methods inherited from class com.aquima.interactions.foundation.report.ReportingDelegateDS
addMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
FieldDelegateDS
Construct a datasource that delegates all method calls to the provided datasource.- Parameters:
datasource
- The delegate visitor, may not be null
-
-
Method Details
-
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 interfaceIFieldDS
- Returns:
- The name of the attribute the field is defined for.
-
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 interfaceIElementDS
- Returns:
- the (unique) name of the element.
-
getDataType
Description copied from interface:IFieldDS
This method returns the data type of the field.- Specified by:
getDataType
in interfaceIFieldDS
- Returns:
- The data type of the field.
-
getQuestionText
Description copied from interface:IFieldDS
The question text associated with this field. This text may contain plain TSL.- Specified by:
getQuestionText
in interfaceIFieldDS
- Returns:
- The question text associated with this field.
-
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 interfaceIElementDS
- Returns:
- the presentation styles that should be used when including the content element that is referred to.
-
getExplainText
Description copied from interface:IFieldDS
The explain text associated with this field. This text may contain plain TSL.- Specified by:
getExplainText
in interfaceIFieldDS
- 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 interfaceIFieldDS
- Returns:
- the cardinality of the field-values
-
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 interfaceIFieldDS
- Returns:
- The condition that will determine if the element is required or not.
-
iterateValidations
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 interfaceIFieldDS
- Parameters:
visitor
- The visitor that should be used to add the validations to.- Throws:
InitializationException
- This exception is thrown when the validations could not be initialized.
-
iterateParameterValues
Description copied from interface:IFieldDS
Iterates over all parameters of the field and adds each parameter to the provided visitor.- Specified by:
iterateParameterValues
in interfaceIFieldDS
- Parameters:
visitor
- the visitor that receives the field's parameters
-