|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.cs.ajax.AjaxUtils
public class AjaxUtils
Constructor Summary | |
---|---|
AjaxUtils()
|
Method Summary | |
---|---|
static JSONArray |
convertToArray(IndexedCollection ic,
java.util.Locale loc,
java.lang.String convType)
Convert the indexed collection to JSONArray |
static KeyedCollection |
convertToFlatKeyedCollection(JSONObject jo)
Convert the JSONObject to KeyedCollection in flat format |
static IndexedCollection |
convertToIndexedCollection(JSONArray ja)
Convert the indexed collection to JSONArray |
static IndexedCollection |
convertToIndexedCollection(JSONArray ja,
java.lang.String name)
Convert the indexed collection to JSONArray |
static java.lang.String |
convertToJson(Context ctx,
java.util.Locale loc,
java.lang.String convType)
Convert the BTT context object to JSON String |
static JSONObject |
convertToJson(KeyedCollection kc,
java.util.Locale loc,
java.lang.String convType)
* Convert the keyed collection to JSONObject |
static KeyedCollection |
convertToKeyedCollection(JSONObject jo)
Convert the JSONObject to KeyedCollection |
static KeyedCollection |
convertToKeyedCollection(JSONObject jo,
java.lang.String name)
* Convert the keyed collection to JSONObject |
static JSONArray |
convertToOrderedArray(IndexedCollection ic,
java.util.Locale loc,
java.lang.String convType)
Convert the indexed collection to JSONArray and keep the order of the attributes in JOSN the same as the elements in KeyedCollection |
static JSONObject |
convertToOrderedJson(KeyedCollection kc,
java.util.Locale loc,
java.lang.String convType)
* Convert the keyed collection to JSONObject and keep the order of the attributes in JOSN the same as the elements in KeyedCollection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AjaxUtils()
Method Detail |
---|
public static java.lang.String convertToJson(Context ctx, java.util.Locale loc, java.lang.String convType)
ctx
- the BTT context objectloc
- locale info of the user
public static JSONObject convertToJson(KeyedCollection kc, java.util.Locale loc, java.lang.String convType)
kc
- the keyed collectionloc
- locale info of the user
public static JSONObject convertToOrderedJson(KeyedCollection kc, java.util.Locale loc, java.lang.String convType)
kc
- the keyed collectionloc
- locale info of the user
public static JSONArray convertToArray(IndexedCollection ic, java.util.Locale loc, java.lang.String convType)
ic
- the indexed collectionloc
- locale info of the user
public static JSONArray convertToOrderedArray(IndexedCollection ic, java.util.Locale loc, java.lang.String convType)
ic
- the indexed collectionloc
- locale info of the user
public static KeyedCollection convertToKeyedCollection(JSONObject jo)
jo
- the JSONObject
public static KeyedCollection convertToFlatKeyedCollection(JSONObject jo)
jo
-
public static KeyedCollection convertToKeyedCollection(JSONObject jo, java.lang.String name)
kc
- the keyed collection
public static IndexedCollection convertToIndexedCollection(JSONArray ja)
ic
- the indexed collection
public static IndexedCollection convertToIndexedCollection(JSONArray ja, java.lang.String name)
ic
- the indexed collection
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |