public class JSONConversionUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_ALN |
static java.lang.String |
TYPE_BIGINT |
static java.lang.String |
TYPE_BLOB |
static java.lang.String |
TYPE_BOOLEAN |
static java.lang.String |
TYPE_DATETIME |
static java.lang.String |
TYPE_DECIMAL |
static java.lang.String |
TYPE_INTEGER |
| Constructor and Description |
|---|
JSONConversionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
convertFromJSONDate(java.lang.String data,
java.lang.String dateFormatType,
java.lang.String dateFormat)
Apply rules to this level recursively
|
static void |
convertToJSONDate(java.util.Date input,
com.ibm.json.java.JSONObject jo,
java.lang.String propName,
java.lang.String formatType,
java.lang.String dateFormat,
UserInfo userInfo)
Apply rules to this level recursively
|
static java.lang.String |
getJSONType(int maxType)
Get Maximo type
|
protected static java.lang.String |
getJSONType(java.lang.String propName,
java.lang.Object o) |
static void |
setToJSON(java.lang.String type,
java.lang.String propName,
java.lang.String formattedValue,
com.ibm.json.java.JSONObject jo,
java.lang.String formatType,
java.lang.String dateFormat,
UserInfo userInfo)
Apply rules to this level recursively
|
public static final java.lang.String TYPE_BOOLEAN
public static final java.lang.String TYPE_BLOB
public static final java.lang.String TYPE_DATETIME
public static final java.lang.String TYPE_ALN
public static final java.lang.String TYPE_INTEGER
public static final java.lang.String TYPE_BIGINT
public static final java.lang.String TYPE_DECIMAL
public static void setToJSON(java.lang.String type,
java.lang.String propName,
java.lang.String formattedValue,
com.ibm.json.java.JSONObject jo,
java.lang.String formatType,
java.lang.String dateFormat,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
element - the JDOM Elementmbo - the current mboinfo - the MosDetailInfo for this levelMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic static java.lang.String convertFromJSONDate(java.lang.String data,
java.lang.String dateFormatType,
java.lang.String dateFormat)
throws MXException,
java.rmi.RemoteException
element - the JDOM Elementmbo - the current mboinfo - the MosDetailInfo for this levelMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic static void convertToJSONDate(java.util.Date input,
com.ibm.json.java.JSONObject jo,
java.lang.String propName,
java.lang.String formatType,
java.lang.String dateFormat,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
element - the JDOM Elementmbo - the current mboinfo - the MosDetailInfo for this levelMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic static java.lang.String getJSONType(int maxType)
type - Maximo type as integerprotected static java.lang.String getJSONType(java.lang.String propName,
java.lang.Object o)
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXException