Class DataCollectionValueConverter

java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.sheet.node.DataCollectionValueConverter
Direct Known Subclasses:
DataCollectionAttachmentToAttachmentValueConverter, DataCollectionBarcodeToBarcodeValueConverter, DataCollectionBooleanToBooleanValueConverter, DataCollectionComboboxToSelectionValueConverter, DataCollectionCoordinateToCoordinatesValueConverter, DataCollectionDateToDateValueConverter, DataCollectionDoubleToDoubleValueConverter, DataCollectionEuroToDoubleValueConverter, DataCollectionMultiSelectToMultiSelectionValueConverter, DataCollectionNumberToLongValueConverter, DataCollectionSignatureToSignatureValueConverter, DataCollectionTimeToTimeValueConverter, DataCollectionUnsupportedValueConverter, DataCollectionVarcharToTextValueConverter

public abstract class DataCollectionValueConverter extends Object
This class is the base for value converters. It manages the conversion result.
All value converter are added to the DataCollectionNodeConverterBucket and associated to the node type they convert.
This is the class to extend to build a custom Value Converter.
Since:
13.0
  • Constructor Details

    • DataCollectionValueConverter

      public DataCollectionValueConverter()
  • Method Details

    • convertBody

      public abstract void convertBody(overit.geocallapp.wfm.srd.scheda.SchedaTree oldSheet, DataCollectionNode newNode) throws Exception
      Contains the logic to convert the node value.
      Parameters:
      oldSheet - the old node
      newNode - the new node
      Throws:
      Exception - the exception
    • convert

      public DataCollectionValueConversionResult convert(overit.geocallapp.wfm.srd.scheda.SchedaTree oldSheet, DataCollectionNode newNode)
      Manage the value conversion e the result creation.
      Parameters:
      oldSheet - the old node
      newNode - the new node
      Returns:
      the value conversion result
      See Also: