Interface ResultTypeKeyPathValue

All Superinterfaces:
ResultType, ResultTypeKeyPath

public interface ResultTypeKeyPathValue extends ResultTypeKeyPath

XPath Result in keypath and value format. This format is specified trough ReslutTypeKeyPathValue.class as a parameter to Maapi.queryStart(int,String,String,int,int,List,Class)

Example:


  QueryResult<ResultTypeKeyPathValue> 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;),
                       ResultTypeKeyPathValue.class);
  for(QueryResult.Entry entry : qR4){
      List<ResultTypeKeyPathValue> rsValue = entry.value();
      for(ResultTypeKeyPathValue typ: rsValue){
          ConfObject[] v0 = typ.keyPath();
          System.out.println(&quot;path = &quot; + Arrays.toString(v0));
          ConfValue v1 = typ.confValue();
          System.out.println(&quot;value = &quot; + v1);
      }
  }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the result value from a query

    Methods inherited from interface com.tailf.maapi.ResultTypeKeyPath

    keyPath
  • Method Details

    • confValue

      ConfValue confValue()
      Retrieves the result value from a query
      Returns:
      value as ConfValue from the result