com.ibm.tivoli.maximo.fdmbo

Class JSONPathEvaluator

  • java.lang.Object
    • com.ibm.tivoli.maximo.fdmbo.JSONPathEvaluator


  • public class JSONPathEvaluator
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String cleanPath(java.lang.String objectPath)
      Apply rules for external interfaces
      static java.util.List evaluateExpression(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath)
      Apply rules for external interfaces
      static java.util.List evaluateExpression(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath, boolean firstRecord)
      Apply rules for external interfaces
      static java.util.List evaluateExpression(com.ibm.json.java.JSONObject jsonData, java.lang.String propPath, java.lang.String propName, java.util.List 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONPathEvaluator

        public JSONPathEvaluator()
    • Method Detail

      • parsePropPath

        public static com.ibm.json.java.JSONObject parsePropPath(com.ibm.json.java.JSONObject jsonData,
                                                                 java.lang.String propPath)
                                                          throws MXException,
                                                                 java.rmi.RemoteException
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • parseObjectPath

        public static com.ibm.json.java.JSONArtifact parseObjectPath(com.ibm.json.java.JSONObject jsonData,
                                                                     java.lang.String objectPath,
                                                                     int index)
                                                              throws MXException,
                                                                     java.rmi.RemoteException
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • parseObjectPath

        public 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
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • cleanPath

        public static java.lang.String cleanPath(java.lang.String objectPath)
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getPropValue

        public static java.lang.String getPropValue(com.ibm.json.java.JSONObject jsonData,
                                                    java.lang.String propPath)
                                             throws MXException
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • evaluateExpression

        public static java.util.List evaluateExpression(com.ibm.json.java.JSONObject jsonData,
                                                        java.lang.String propPath)
                                                 throws MXException
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • evaluateExpression

        public static java.util.List evaluateExpression(com.ibm.json.java.JSONObject jsonData,
                                                        java.lang.String propPath,
                                                        boolean firstRecord)
                                                 throws MXException
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • evaluateExpression

        public static java.util.List evaluateExpression(com.ibm.json.java.JSONObject jsonData,
                                                        java.lang.String propPath,
                                                        java.lang.String propName,
                                                        java.util.List results,
                                                        boolean firstRecord)
                                                 throws MXException
        Apply rules for external interfaces
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • objectToString

        public static java.lang.String objectToString(java.lang.Object o)
                                               throws MXException
        Resolve attribute token to the value
        Parameters:
        token - token to replace.
        pathToken - is path token.
        mbo - Mbo reference
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception