Interface ResultTypeKeyPath

All Superinterfaces:
ResultType
All Known Subinterfaces:
ResultTypeKeyPathValue

public interface ResultTypeKeyPath extends ResultType
XPath Result in keypath format.

This format is specified trough ReslutTypeKeyPath.class as a parameter to Maapi.queryStart(int,String,String,int,int,List,Class)

Example:


  QueryResult<ResultTypeKeyPath> qR4 =
      maapi.queryStart(th,&quot;/mtest/servers/server[ip='1.2.3.4']&quot;,
                       &quot;/&quot;,3,1,
                       Arrays.asList(&quot;name&quot;,
                                     &quot;ip&quot;,
                                     &quot;port&quot;),
                       ResultTypeKeyPath.class);
  for(QueryResult.Entry entry : qR4){
      List<ResultTypeKeyPath> rsValue = entry.value();
      for(ResultTypeKeyPath typ: rsValue){
          ConfObject[] v0 = typ.keyPath();
          System.out.println(&quot;path = &quot; + Arrays.toString(v0));
      }
  }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the result keypath from a query
  • Method Details

    • keyPath

      ConfObject[] keyPath()
      Retrieves the result keypath from a query
      Returns:
      keypath as ConfObject[] from the result