Class BdmFieldTypeConverter

java.lang.Object
org.bonitasoft.engine.business.data.impl.BdmFieldTypeConverter

public class BdmFieldTypeConverter extends Object
Utility class to convert a value to a specific type if compatible. Notably, number types are converted to the requested type. This class is used by the BDM insert / update methods called by the REST API, so types are converted from JSON, which need specific treatment.
Author:
Emmanuel Duchastenier
  • Constructor Details

    • BdmFieldTypeConverter

      public BdmFieldTypeConverter()
  • Method Details

    • convert

      public static <T> T convert(Object value, Class<T> targetType)