Interface IFieldDS
- All Superinterfaces:
IElementDS
,IReportingDS
- All Known Implementing Classes:
FieldDelegateDS
,FieldDS
,ReportingFieldDS
,XmlFieldDS
,XmlFieldDS
,XmlInlineFieldDS
,XmlInlineFieldDS
Interface for objects capable of providing the data to initialize a field (definition).
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
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.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 interface com.aquima.interactions.composer.ds.IElementDS
getName, getPresentationStyles
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Method Details
-
getAttributeName
String getAttributeName()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).- Returns:
- The name of the attribute the field is defined for.
-
getDataType
DataType getDataType()This method returns the data type of the field.- Returns:
- The data type of the field.
-
getQuestionText
IMultilingualText getQuestionText()The question text associated with this field. This text may contain plain TSL.- Returns:
- The question text associated with this field.
-
getExplainText
IMultilingualText getExplainText()The explain text associated with this field. This text may contain plain TSL.- Returns:
- The explain text associated with this field.
-
isMultivalue
boolean isMultivalue()Returns the cardinality of the field-values.- Returns:
- the cardinality of the field-values
-
getRequiredCondition
String getRequiredCondition()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.- Returns:
- The condition that will determine if the element is required or not.
-
iterateValidations
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.- 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
Iterates over all parameters of the field and adds each parameter to the provided visitor.- Parameters:
visitor
- the visitor that receives the field's parameters- Throws:
InitializationException
- This exception is thrown when the parameters could not be initialized.
-