Class JavaScriptUtils

java.lang.Object
org.pentaho.di.core.util.JavaScriptUtils

public class JavaScriptUtils extends Object
This class contains common code from Script and .scriptvalues_mod.ScriptValuesMod classes
Author:
Andrey Khayrutdinov
  • Method Details

    • convertFromJs

      public static Object convertFromJs(Object value, int type, String fieldName) throws org.pentaho.di.core.exception.KettleValueException
      Throws:
      org.pentaho.di.core.exception.KettleValueException
    • jsToNumber

      public static Number jsToNumber(Object value, String classType)
    • jsToInteger

      public static Long jsToInteger(Object value, Class<?> clazz)
    • jsToString

      public static String jsToString(Object value, String classType)
    • jsToDate

      public static Date jsToDate(Object value, String classType) throws org.pentaho.di.core.exception.KettleValueException
      Throws:
      org.pentaho.di.core.exception.KettleValueException
    • jsToBigNumber

      public static BigDecimal jsToBigNumber(Object value, String classType)