Class JavaScriptUtils

    • Method Detail

      • 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
      • jsToInteger

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

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