Class ValueTypeConverter

java.lang.Object
com.aquima.interactions.rule.graph.ValueTypeConverter
All Implemented Interfaces:
IValueConverter

public class ValueTypeConverter extends Object implements IValueConverter
This value converter converts the result of a rule to the requested type. The conversion might fail at runtime with a RuleEngineexception.
Since:
6.1
Author:
O. Kerpershoek
  • Constructor Details

    • ValueTypeConverter

      protected ValueTypeConverter(DataType type)
  • Method Details

    • convert

      public SourcedValue convert(SourcedValue sourcedValue)
      Description copied from interface: IValueConverter
      This method performs the actual conversion and returns the result in the corrects type.
      Specified by:
      convert in interface IValueConverter
      Parameters:
      sourcedValue - The value that should be converted.
      Returns:
      The converted value of the correct type (never null).