Class KiePMMLDroolsModelUtils


  • public class KiePMMLDroolsModelUtils
    extends java.lang.Object
    Static utility methods for KiePMMLDroolsModels
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getCorrectlyFormattedResult​(java.lang.Object rawValue, org.kie.pmml.api.enums.DATA_TYPE targetType)
      Return an Object correctly formatted to be put in drl (e.g. if the targetType is DATA_TYPE.STRING returns the quoted rawValue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCorrectlyFormattedResult

        public static java.lang.Object getCorrectlyFormattedResult​(java.lang.Object rawValue,
                                                                   org.kie.pmml.api.enums.DATA_TYPE targetType)
        Return an Object correctly formatted to be put in drl (e.g. if the targetType is DATA_TYPE.STRING returns the quoted rawValue.

        If rawValue is null, returns null

        Parameters:
        rawValue -
        targetType -
        Returns: