public class JSONPathEvaluator
extends java.lang.Object
Constructor and Description |
---|
JSONPathEvaluator() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
cleanPath(java.lang.String objectPath)
Apply rules for external interfaces
|
static java.util.List<java.lang.String> |
evaluateExpression(com.ibm.json.java.JSONObject jsonData,
java.lang.String propPath)
Apply rules for external interfaces
|
static java.util.List<java.lang.String> |
evaluateExpression(com.ibm.json.java.JSONObject jsonData,
java.lang.String propPath,
boolean firstRecord)
Apply rules for external interfaces
|
static java.util.List<java.lang.String> |
evaluateExpression(com.ibm.json.java.JSONObject jsonData,
java.lang.String propPath,
java.lang.String propName,
java.util.List<java.lang.String> results,
boolean firstRecord)
Apply rules for external interfaces
|
static java.lang.String |
getPropValue(com.ibm.json.java.JSONObject jsonData,
java.lang.String propPath)
Apply rules for external interfaces
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
objectToString(java.lang.Object o)
Resolve attribute token to the value
|
static com.ibm.json.java.JSONArtifact |
parseObjectPath(com.ibm.json.java.JSONObject jsonData,
java.lang.String objectPath,
int index)
Apply rules for external interfaces
|
static com.ibm.json.java.JSONArtifact |
parseObjectPath(com.ibm.json.java.JSONObject jsonData,
java.lang.String objectPath,
int index,
boolean create,
boolean isArray)
Apply rules for external interfaces
|
static com.ibm.json.java.JSONObject |
parsePropPath(com.ibm.json.java.JSONObject jsonData,
java.lang.String propPath)
Apply rules for external interfaces
|
public static com.ibm.json.java.JSONObject parsePropPath(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath) throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static com.ibm.json.java.JSONArtifact parseObjectPath(com.ibm.json.java.JSONObject jsonData, java.lang.String objectPath, int index) throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static com.ibm.json.java.JSONArtifact parseObjectPath(com.ibm.json.java.JSONObject jsonData, java.lang.String objectPath, int index, boolean create, boolean isArray) throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.lang.String cleanPath(java.lang.String objectPath)
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.lang.String getPropValue(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath) throws MXException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.util.List<java.lang.String> evaluateExpression(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath) throws MXException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.util.List<java.lang.String> evaluateExpression(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath, boolean firstRecord) throws MXException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.util.List<java.lang.String> evaluateExpression(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath, java.lang.String propName, java.util.List<java.lang.String> results, boolean firstRecord) throws MXException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.lang.String objectToString(java.lang.Object o) throws MXException
token
- token to replace.pathToken
- is path token.mbo
- Mbo referenceMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception