Package org.pentaho.di.core.util
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectconvertFromJs(Object value, int type, String fieldName)static BigDecimaljsToBigNumber(Object value, String classType)static DatejsToDate(Object value, String classType)static LongjsToInteger(Object value, Class<?> clazz)static NumberjsToNumber(Object value, String classType)static StringjsToString(Object value, String classType)
-
-
-
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
-
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)
-
-