public class JSOHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addProperties(JavaScriptObject destination,
JavaScriptObject propertiesObject)
Adds all properties and methods from the propertiesObject to the destination object.
|
static void |
apply(JavaScriptObject config,
JavaScriptObject jsObj) |
static JavaScriptObject |
arrayConvert(JavaScriptObject[] array) |
static JavaScriptObject |
arrayConvert(java.lang.Object[] array) |
static java.lang.Object |
arrayGetObject(JavaScriptObject array,
int index) |
static int |
arrayLength(JavaScriptObject array) |
static void |
arraySet(JavaScriptObject array,
int index,
JavaScriptObject value) |
static void |
arraySet(JavaScriptObject array,
int index,
java.lang.Object value) |
static JavaScriptObject |
cleanProperties(JavaScriptObject properties,
boolean copyProperties)
Removes non-transferable properties from the supplied object
(e.g.
|
static JavaScriptObject |
convertMapToJavascriptObject(java.util.Map valueMap) |
static JavaScriptObject |
convertMapToJavascriptObject(java.util.Map valueMap,
boolean strict) |
static java.lang.Object[] |
convertToArray(JavaScriptObject object)
Convert a Javascript object to an Object[].
|
static JavaScriptObject |
convertToCellArray(int[][] cells) |
static java.lang.Object |
convertToJava(JavaScriptObject object) |
static java.lang.Object |
convertToJava(JavaScriptObject object,
boolean listAsArray)
Convert a JavaScriptObject to the appropriate type of JavaObject.
|
static java.util.Date |
convertToJavaDate(JavaScriptObject val) |
static java.util.Date[] |
convertToJavaDateArray(JavaScriptObject array) |
static java.lang.Double[] |
convertToJavaDoubleArray(JavaScriptObject array) |
static java.lang.Float[] |
convertToJavaFloatArray(JavaScriptObject array) |
static int[] |
convertToJavaIntArray(JavaScriptObject array) |
static java.lang.Integer[] |
convertToJavaInterArray(JavaScriptObject array) |
static java.lang.Object[] |
convertToJavaObjectArray(JavaScriptObject array) |
static RefDataClass[] |
convertToJavaRefDataClassArray(JavaScriptObject nativeArray) |
static JavaScriptObject |
convertToJavaScriptArray(boolean[] array) |
static JavaScriptObject |
convertToJavaScriptArray(byte[] array) |
static JavaScriptObject |
convertToJavaScriptArray(char[] array) |
static JavaScriptObject |
convertToJavaScriptArray(double[] array) |
static JavaScriptObject |
convertToJavaScriptArray(float[] array) |
static JavaScriptObject |
convertToJavaScriptArray(int[] array) |
static JavaScriptObject |
convertToJavaScriptArray(long[] array) |
static JavaScriptObject |
convertToJavaScriptArray(java.lang.Object[] array) |
static JavaScriptObject |
convertToJavaScriptArray(java.lang.Object[] array,
boolean strict) |
static JavaScriptObject |
convertToJavaScriptArray(short[] array) |
static JsDate |
convertToJavaScriptDate(java.util.Date date) |
static java.lang.String[] |
convertToJavaStringArray(JavaScriptObject array) |
static <O extends JavaScriptObject> |
convertToJsArray(O[] array) |
static java.util.List |
convertToList(JavaScriptObject object)
Convert a Javascript object to a List.
|
static java.util.Map |
convertToMap(JavaScriptObject jsObj)
Convert a Javascript object containing key:value pairs to a Map.
|
static java.util.Map |
convertToMap(JavaScriptObject jsObj,
boolean listAsArray)
Convert a Javascript object containing key:value pairs to a Map.
|
static java.lang.String |
convertToString(java.lang.Object obj) |
static JavaScriptObject |
createJavaScriptArray() |
static JavaScriptObject |
createObject() |
static void |
deleteAttribute(JavaScriptObject elem,
java.lang.String attr) |
static void |
deleteAttributeIfExists(JavaScriptObject elem,
java.lang.String attr) |
static double |
doubleValue(java.lang.Number num) |
static JavaScriptObject |
eval(java.lang.String jsFrag)
Evaluate the passed string as Javascript
|
static int |
getArrayLength(JavaScriptObject array) |
static java.lang.String |
getArrayValue(JavaScriptObject array,
int index) |
static java.lang.String |
getAttribute(JavaScriptObject elem,
java.lang.String attr) |
static boolean |
getAttributeAsBoolean(JavaScriptObject elem,
java.lang.String attr)
Returns attribute value set as a Boolean.
|
static java.lang.Boolean |
getAttributeAsBoolean(JavaScriptObject elem,
java.lang.String attr,
boolean allowNull)
Returns attribute value set as a Boolean.
|
static java.util.Date |
getAttributeAsDate(JavaScriptObject elem,
java.lang.String attr) |
static java.lang.Double |
getAttributeAsDouble(JavaScriptObject elem,
java.lang.String attr) |
static double[] |
getAttributeAsDoubleArray(JavaScriptObject elem,
java.lang.String attr) |
static Element |
getAttributeAsElement(JavaScriptObject elem,
java.lang.String attr) |
static java.lang.Float |
getAttributeAsFloat(JavaScriptObject elem,
java.lang.String attr) |
static java.lang.Integer |
getAttributeAsInt(JavaScriptObject elem,
java.lang.String attr) |
static int[] |
getAttributeAsIntArray(JavaScriptObject elem,
java.lang.String attr) |
static JavaScriptObject |
getAttributeAsJavaScriptObject(JavaScriptObject elem,
java.lang.String attr) |
static JavaScriptObject[] |
getAttributeAsJavaScriptObjectArray(JavaScriptObject elem,
java.lang.String attr) |
static java.util.Map |
getAttributeAsMap(JavaScriptObject elem,
java.lang.String attr) |
static java.lang.Object |
getAttributeAsObject(JavaScriptObject elem,
java.lang.String attr) |
static java.lang.String[] |
getAttributeAsStringArray(JavaScriptObject elem,
java.lang.String attr) |
static int[][] |
getCellArray(JavaScriptObject jsCells) |
static java.lang.String |
getClassName(JavaScriptObject javaScriptObject)
Returns the javascript class name.
|
static java.util.Date |
getDateArrayValue(JavaScriptObject array,
int i) |
static double |
getdoubleArrayValue(JavaScriptObject array,
int index) |
static java.lang.Double |
getDoubleArrayValue(JavaScriptObject array,
int index) |
static double |
getDoubleValueFromJavaScriptObjectArray(JavaScriptObject elem,
int i) |
static Element |
getElementValueFromJavaScriptObjectArray(JavaScriptObject elem,
int i)
This is used to access Element array as JavaScriptObject
|
static float |
getfloatArrayValue(JavaScriptObject array,
int index) |
static java.lang.Float |
getFloatArrayValue(JavaScriptObject array,
int index) |
static int |
getIntArrayValue(JavaScriptObject array,
int index) |
static java.lang.Integer |
getIntegerArrayValue(JavaScriptObject array,
int index) |
static int |
getIntValueFromJavaScriptObjectArray(JavaScriptObject elem,
int i) |
static int |
getJavaScriptObjectArraySize(JavaScriptObject elem) |
static JsDate |
getJSLogicalDate(java.util.Date date) |
static JsDate |
getJSLogicalDate(int year,
int month,
int date) |
static JsDate |
getJSLogicalTime(java.util.Date date) |
static JsDate |
getJSLogicalTime(int hour,
int minute,
int second,
int millisecond) |
static JavaScriptObject |
getJSOArrayValue(JavaScriptObject array,
int index) |
static java.lang.Object |
getObjectArrayValue(JavaScriptObject array,
int index) |
static java.lang.String[] |
getProperties(JavaScriptObject jsObj) |
static java.lang.String |
getPropertiesAsString(JavaScriptObject jsObj) |
static java.lang.String |
getStringValueFromJavaScriptObjectArray(JavaScriptObject elem,
int i) |
static JavaScriptObject |
getValueFromJavaScriptObjectArray(JavaScriptObject elem,
int i) |
static boolean |
isArray(JavaScriptObject jsObj) |
static boolean |
isJavaArray(java.lang.Object obj) |
static boolean |
isJavaBoolean(java.lang.Object obj) |
static boolean |
isJavaDate(java.lang.Object obj) |
static boolean |
isJavaDouble(java.lang.Object obj) |
static boolean |
isJavaFloat(java.lang.Object obj) |
static boolean |
isJavaInteger(java.lang.Object obj) |
static boolean |
isJavaList(java.lang.Object obj) |
static boolean |
isJavaMap(java.lang.Object obj) |
static boolean |
isJavaNumber(java.lang.Object obj) |
static boolean |
isJavaString(java.lang.Object obj) |
static boolean |
isJSO(java.lang.Object object) |
static boolean |
isScClassInstance(JavaScriptObject javaScriptObject)
Returns whether the supplied JavaScriptObject is a SmartClient class instance.
|
static boolean |
isScClassObject(JavaScriptObject javaScriptObject)
Returns whether the supplied JavaScriptObject is a SmartClient class (a Class object
itself, rather than an instance of a class).
|
static JavaScriptObject[] |
listToArray(java.util.List list) |
static void |
setArrayValue(JavaScriptObject array,
int index,
boolean value) |
static void |
setArrayValue(JavaScriptObject array,
int index,
char value) |
static void |
setArrayValue(JavaScriptObject array,
int index,
java.util.Date value) |
static void |
setArrayValue(JavaScriptObject array,
int index,
double value) |
static void |
setArrayValue(JavaScriptObject array,
int index,
JavaScriptObject value) |
static void |
setArrayValue(JavaScriptObject array,
int index,
long value) |
static void |
setArrayValue(JavaScriptObject array,
int index,
java.lang.Object value) |
static void |
setArrayValue(JavaScriptObject array,
int index,
java.lang.String value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
boolean value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Boolean value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Boolean[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.util.Date value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.util.Date[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
double value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
double[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Double[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
float[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Float[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
Function handler) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
int value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
int[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Integer[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
JavaScriptObject value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
JavaScriptObject[] value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Long value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Long[] values) |
static void |
setAttribute(JavaScriptObject jsObj,
java.lang.String attr,
java.util.Map valueMap) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Number value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Object value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.String value) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.String[] values) |
static void |
setAttribute(JavaScriptObject elem,
java.lang.String attr,
ValueEnum[] values) |
static void |
setNullAttribute(JavaScriptObject elem,
java.lang.String attr) |
static void |
setObjectAttribute(JavaScriptObject elem,
java.lang.String attr,
java.lang.Object object) |
static void |
throwUnconvertibleObjectException(java.lang.Object object,
java.lang.String messageDetail) |
static JavaScriptObject[] |
toArray(JavaScriptObject array) |
static java.lang.Boolean |
toBoolean(boolean value) |
static java.util.Date |
toDate(double millis)
Converts a time to a Java
Date object. |
static JavaScriptObject |
toDateJS(java.util.Date date) |
static java.lang.Double |
toDouble(double value) |
static Element[] |
toElementArray(JavaScriptObject array) |
static java.lang.Float |
toFloat(float value) |
static java.lang.Integer |
toInteger(int value) |
static java.lang.Long |
toLong(double value) |
public static java.lang.String getClassName(JavaScriptObject javaScriptObject)
public static boolean isScClassInstance(JavaScriptObject javaScriptObject)
the
- object to evaluatepublic static boolean isScClassObject(JavaScriptObject javaScriptObject)
the
- object to evaluatepublic static JavaScriptObject eval(java.lang.String jsFrag)
jsFrag
- the string to evaluatepublic static boolean isJSO(java.lang.Object object)
public static double doubleValue(java.lang.Number num)
public static java.lang.String getAttribute(JavaScriptObject elem, java.lang.String attr)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.String value)
public static JavaScriptObject getAttributeAsJavaScriptObject(JavaScriptObject elem, java.lang.String attr)
public static JavaScriptObject[] getAttributeAsJavaScriptObjectArray(JavaScriptObject elem, java.lang.String attr)
public static JavaScriptObject[] toArray(JavaScriptObject array)
public static boolean isArray(JavaScriptObject jsObj)
public static Element[] toElementArray(JavaScriptObject array)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, JavaScriptObject[] value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, int[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, float[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, double[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.String[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Integer[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Float[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Boolean[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Double[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Long[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.util.Date[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, ValueEnum[] values)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Object value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, JavaScriptObject value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, int value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Number value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Long value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Boolean value)
public static void setNullAttribute(JavaScriptObject elem, java.lang.String attr)
public static void deleteAttribute(JavaScriptObject elem, java.lang.String attr)
public static void deleteAttributeIfExists(JavaScriptObject elem, java.lang.String attr)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, boolean value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, double value)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, Function handler)
public static void setAttribute(JavaScriptObject elem, java.lang.String attr, java.util.Date value)
public static void setObjectAttribute(JavaScriptObject elem, java.lang.String attr, java.lang.Object object)
public static Element getAttributeAsElement(JavaScriptObject elem, java.lang.String attr)
public static java.lang.Integer getAttributeAsInt(JavaScriptObject elem, java.lang.String attr)
public static java.lang.Double getAttributeAsDouble(JavaScriptObject elem, java.lang.String attr)
public static java.util.Date getAttributeAsDate(JavaScriptObject elem, java.lang.String attr)
public static java.lang.Float getAttributeAsFloat(JavaScriptObject elem, java.lang.String attr)
public static int[] getAttributeAsIntArray(JavaScriptObject elem, java.lang.String attr)
public static double[] getAttributeAsDoubleArray(JavaScriptObject elem, java.lang.String attr)
public static java.lang.String[] getAttributeAsStringArray(JavaScriptObject elem, java.lang.String attr)
public static int getJavaScriptObjectArraySize(JavaScriptObject elem)
public static int getIntValueFromJavaScriptObjectArray(JavaScriptObject elem, int i)
public static double getDoubleValueFromJavaScriptObjectArray(JavaScriptObject elem, int i)
public static java.lang.String getStringValueFromJavaScriptObjectArray(JavaScriptObject elem, int i)
public static JavaScriptObject getValueFromJavaScriptObjectArray(JavaScriptObject elem, int i)
public static int[][] getCellArray(JavaScriptObject jsCells)
public static JavaScriptObject convertToCellArray(int[][] cells)
public static boolean getAttributeAsBoolean(JavaScriptObject elem, java.lang.String attr)
getAttributeAsBoolean
will return Boolean false
if the attribute value is null
or not a Boolean. Use the three parameter
variant of this API getAttributeAsBoolean(JavaScriptObject, String, boolean)
if you want null
returned for null
attribute values.elem
- the JavaScriptObject containing the propertyattr
- the property namepublic static java.lang.Boolean getAttributeAsBoolean(JavaScriptObject elem, java.lang.String attr, boolean allowNull)
null
or not a Boolean, the return value depends upon allowNull
. If
allowNull
is true, null
will be returned; otherwise Boolean
false
will be returned. For a simpler approach that never returns
null
, use the two parameter variant of this API
getAttributeAsBoolean(JavaScriptObject, String)
.elem
- the JavaScriptObject containing the propertyattr
- the property nameallowNull
- whether to permit a null
return valuepublic static java.lang.Object getAttributeAsObject(JavaScriptObject elem, java.lang.String attr)
public static java.util.Map getAttributeAsMap(JavaScriptObject elem, java.lang.String attr)
public static JavaScriptObject[] listToArray(java.util.List list)
public static JavaScriptObject arrayConvert(java.lang.Object[] array)
public static JavaScriptObject arrayConvert(JavaScriptObject[] array)
public static int arrayLength(JavaScriptObject array)
public static java.lang.Object arrayGetObject(JavaScriptObject array, int index)
public static void arraySet(JavaScriptObject array, int index, java.lang.Object value)
public static void arraySet(JavaScriptObject array, int index, JavaScriptObject value)
public static Element getElementValueFromJavaScriptObjectArray(JavaScriptObject elem, int i)
public static JavaScriptObject createObject()
public static JavaScriptObject convertToJavaScriptArray(boolean[] array)
public static JavaScriptObject convertToJavaScriptArray(char[] array)
public static JavaScriptObject convertToJavaScriptArray(byte[] array)
public static JavaScriptObject convertToJavaScriptArray(short[] array)
public static JavaScriptObject convertToJavaScriptArray(int[] array)
public static JavaScriptObject convertToJavaScriptArray(float[] array)
public static JavaScriptObject convertToJavaScriptArray(double[] array)
public static JavaScriptObject convertToJavaScriptArray(long[] array)
public static java.lang.Object convertToJava(JavaScriptObject object, boolean listAsArray)
object
- JavaScriptObject to convertlistAsArray
- Should arrays be converted to Object[] or Listpublic static java.lang.Object convertToJava(JavaScriptObject object)
public static java.util.Map convertToMap(JavaScriptObject jsObj, boolean listAsArray)
jsObj
- the javascript objectlistAsArray
- Should arrays be converted to Object[] or Listjava.lang.IllegalArgumentException
- if unable to convert the passed JavaScript object to a mappublic static java.util.Map convertToMap(JavaScriptObject jsObj)
jsObj
- the javascript objectjava.lang.IllegalArgumentException
- if unable to convert pass JavaScript object to a mappublic static java.lang.Object[] convertToArray(JavaScriptObject object)
object
- public static java.util.List convertToList(JavaScriptObject object)
object
- public static JsDate convertToJavaScriptDate(java.util.Date date)
public static java.util.Date convertToJavaDate(JavaScriptObject val)
public static java.lang.String convertToString(java.lang.Object obj)
public static boolean isJavaDate(java.lang.Object obj)
obj
- the objectpublic static boolean isJavaNumber(java.lang.Object obj)
obj
- the objectpublic static boolean isJavaInteger(java.lang.Object obj)
obj
- the objectpublic static boolean isJavaFloat(java.lang.Object obj)
obj
- the objectpublic static boolean isJavaDouble(java.lang.Object obj)
obj
- the objectpublic static boolean isJavaString(java.lang.Object obj)
obj
- the objectpublic static boolean isJavaBoolean(java.lang.Object obj)
obj
- the objectpublic static boolean isJavaList(java.lang.Object obj)
public static boolean isJavaMap(java.lang.Object obj)
public static boolean isJavaArray(java.lang.Object obj)
obj
- the objectpublic static <O extends JavaScriptObject> JsArray<O> convertToJsArray(O[] array)
public static JavaScriptObject convertToJavaScriptArray(java.lang.Object[] array)
public static JavaScriptObject convertToJavaScriptArray(java.lang.Object[] array, boolean strict)
public static void throwUnconvertibleObjectException(java.lang.Object object, java.lang.String messageDetail)
public static java.lang.Integer toInteger(int value)
public static java.lang.Long toLong(double value)
public static java.lang.Float toFloat(float value)
public static java.lang.Double toDouble(double value)
public static java.util.Date toDate(double millis)
Date
object.
Note: If needing to convert a JavaScript object, it is preferable to use
convertToJavaDate(JavaScriptObject)
instead because that function is able to
convert to LogicalDate
and LogicalTime
instances as needed.
millis
- number of milliseconds since January 1, 1970, 00:00:00 GMT.Date
representing the given time.public static JavaScriptObject toDateJS(java.util.Date date)
public static JsDate getJSLogicalDate(java.util.Date date)
public static JsDate getJSLogicalDate(int year, int month, int date)
public static JsDate getJSLogicalTime(java.util.Date date)
public static JsDate getJSLogicalTime(int hour, int minute, int second, int millisecond)
public static java.lang.Boolean toBoolean(boolean value)
public static JavaScriptObject createJavaScriptArray()
public static void setArrayValue(JavaScriptObject array, int index, java.util.Date value)
public static void setArrayValue(JavaScriptObject array, int index, java.lang.String value)
public static void setArrayValue(JavaScriptObject array, int index, double value)
public static void setArrayValue(JavaScriptObject array, int index, long value)
public static void setArrayValue(JavaScriptObject array, int index, boolean value)
public static void setArrayValue(JavaScriptObject array, int index, char value)
public static void setArrayValue(JavaScriptObject array, int index, JavaScriptObject value)
public static void setArrayValue(JavaScriptObject array, int index, java.lang.Object value)
public static java.lang.String getArrayValue(JavaScriptObject array, int index)
public static JavaScriptObject getJSOArrayValue(JavaScriptObject array, int index)
public static java.lang.Object getObjectArrayValue(JavaScriptObject array, int index)
public static int getIntArrayValue(JavaScriptObject array, int index)
public static float getfloatArrayValue(JavaScriptObject array, int index)
public static double getdoubleArrayValue(JavaScriptObject array, int index)
public static java.lang.Integer getIntegerArrayValue(JavaScriptObject array, int index)
public static java.lang.Float getFloatArrayValue(JavaScriptObject array, int index)
public static java.lang.Double getDoubleArrayValue(JavaScriptObject array, int index)
public static java.util.Date getDateArrayValue(JavaScriptObject array, int i)
public static int getArrayLength(JavaScriptObject array)
public static int[] convertToJavaIntArray(JavaScriptObject array)
public static java.lang.Integer[] convertToJavaInterArray(JavaScriptObject array)
public static java.lang.String[] convertToJavaStringArray(JavaScriptObject array)
public static java.lang.Float[] convertToJavaFloatArray(JavaScriptObject array)
public static java.lang.Double[] convertToJavaDoubleArray(JavaScriptObject array)
public static java.util.Date[] convertToJavaDateArray(JavaScriptObject array)
public static java.lang.Object[] convertToJavaObjectArray(JavaScriptObject array)
public static RefDataClass[] convertToJavaRefDataClassArray(JavaScriptObject nativeArray)
public static void apply(JavaScriptObject config, JavaScriptObject jsObj)
public static void setAttribute(JavaScriptObject jsObj, java.lang.String attr, java.util.Map valueMap)
public static JavaScriptObject convertMapToJavascriptObject(java.util.Map valueMap)
public static JavaScriptObject convertMapToJavascriptObject(java.util.Map valueMap, boolean strict)
public static java.lang.String[] getProperties(JavaScriptObject jsObj)
public static java.lang.String getPropertiesAsString(JavaScriptObject jsObj)
public static void addProperties(JavaScriptObject destination, JavaScriptObject propertiesObject)
destination
- the destination objectpropertiesObject
- the propertiesObjectpublic static JavaScriptObject cleanProperties(JavaScriptObject properties, boolean copyProperties)
properties
- the supplied object to cleancopyProperties
- whether to copy the object first