Class DataCollectionDateToDateNodeConverter
java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.template.structure.node.DataCollectionNodeConverter
overit.geocallapp.wfm.core.bl.datacollection.converter.template.structure.node.DataCollectionDateToDateNodeConverter
Convert a node old Date node to a new Date node.
- Since:
- 13.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataCollectionNodeConversionResultconvertBody(overit.geocallapp.wfm.survey.template.TemplateTree currentNode, DataCollectionNodeConversionResult conversionResult) Contains the logic to convert Date node intoDataCollectionNodeDate.protected voidsetInitialValue(DataCollectionNode newNode, HashGetter data) Contains the logic to transform the old default value into the new initial value.Methods inherited from class overit.geocallapp.wfm.core.bl.datacollection.converter.template.structure.node.DataCollectionNodeConverter
convert, getDataCollectionNodeConversionResult, getLocalizedField, getLocalizedField, getStackTrace, initNode, loadDefaultFields
-
Constructor Details
-
DataCollectionDateToDateNodeConverter
public DataCollectionDateToDateNodeConverter()
-
-
Method Details
-
convertBody
protected DataCollectionNodeConversionResult convertBody(overit.geocallapp.wfm.survey.template.TemplateTree currentNode, DataCollectionNodeConversionResult conversionResult) throws DataCollectionInitialValueException Contains the logic to convert Date node intoDataCollectionNodeDate.- Specified by:
convertBodyin classDataCollectionNodeConverter- Parameters:
currentNode- the old nodeconversionResult- theDataCollectionNodeConversionResultto populate- Returns:
- the conversion result
DataCollectionNodeConversionResult - Throws:
DataCollectionInitialValueException
-
setInitialValue
Description copied from class:DataCollectionNodeConverterContains the logic to transform the old default value into the new initial value. If no default value where present this method does nothing.- Specified by:
setInitialValuein classDataCollectionNodeConverter- Parameters:
newNode- the new nodedata- old node data
-