public class JavaScriptUtils extends Object
Constructor and Description |
---|
JavaScriptUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertFromJs(Object value,
int type,
String fieldName) |
static BigDecimal |
jsToBigNumber(Object value,
String classType) |
static Date |
jsToDate(Object value,
String classType) |
static Long |
jsToInteger(Object value,
Class<?> clazz) |
static Number |
jsToNumber(Object value,
String classType) |
static String |
jsToString(Object value,
String classType) |
public static Object convertFromJs(Object value, int type, String fieldName) throws KettleValueException
KettleValueException
public static Date jsToDate(Object value, String classType) throws KettleValueException
KettleValueException
public static BigDecimal jsToBigNumber(Object value, String classType)
Copyright © 2018 Hitachi Vantara. All rights reserved.