Advertisement
psi_mmobile

Untitled

Aug 27th, 2021
1,123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1.         // get the query in it's current state
  2.          String lQuery = vo.getQuery();
  3.          //get Valriables
  4.          VariableValueManager lEnsureVariableManager = vo.ensureVariableManager();
  5.          Variable[] lVariables = lEnsureVariableManager.getVariables();
  6.          int lCount = lEnsureVariableManager.getVariableCount();
  7.          // Dump query
  8.          System.out.println("---query--- " + lQuery);
  9.          // if variables found dump them
  10.          if (lCount > 0)
  11.          {
  12.              System.out.println("---Variables:");
  13.              for (int ii = 0; ii < lCount; ii++)
  14.              {
  15.                  Object lObject = lEnsureVariableManager.getVariableValue(lVariables[ii]);
  16.                  System.out.println("  --- Name: " + lVariables[ii].getName() + " Value: " +
  17.                                     (lObject != null ?  lObject.toString() : "null"));
  18.              }
  19.          }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement