Class KiePMMLDroolsModelUtils
- java.lang.Object
-
- org.kie.pmml.models.drools.commons.utils.KiePMMLDroolsModelUtils
-
public class KiePMMLDroolsModelUtils extends java.lang.ObjectStatic utility methods forKiePMMLDroolsModels
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectgetCorrectlyFormattedResult(java.lang.Object rawValue, org.kie.pmml.api.enums.DATA_TYPE targetType)Return anObjectcorrectly formatted to be put in drl (e.g. if the targetType isDATA_TYPE.STRINGreturns the quoted rawValue.
-
-
-
Method Detail
-
getCorrectlyFormattedResult
public static java.lang.Object getCorrectlyFormattedResult(java.lang.Object rawValue, org.kie.pmml.api.enums.DATA_TYPE targetType)Return anObjectcorrectly formatted to be put in drl (e.g. if the targetType isDATA_TYPE.STRINGreturns the quoted rawValue.If rawValue is
null, returnsnull- Parameters:
rawValue-targetType-- Returns:
-
-