This is the thirth article on calling Java from OScript. If you want to refer the first two articles on how to call Java from Oscript, please take a look at the first article and the second article here.
The equivalent data types in java and oscript are:
a. Java to OScript
Java | OScript |
boolean | Boolean |
byte char, Character short, Short int, Integer | Integer |
float, Float double, Double | Real |
long, Long | Long |
java.util.List | List |
java.util.Map | Assoc |
com.opentext.util.RecArray | RecArray |
com.opentext.util.Record | Record |
String | String |
null | Undefined |
b. OScript to Java
OScript | Java |
Assoc | java.util.Map |
Boolean | boolean, Boolean |
Integer | short, Short int, Integer long, Long |
JavaObject | Passed as wrapped value |
List | java.util.List |
Long | long, Long |
Object or Frame | com.opentext.livelink.oml.OScriptObject |
Real | float, Float double, Double |
Record | com.opentext.util.Record |
RecArray | com.opentext.util.RecArray |
String | String |
Undefined | null |
Happy Java Programming in the Content Server!