public interface ResultTypeKeyPath extends ResultType
This format is specified trough ReslutTypeKeyPath.class
as a parameter
to Maapi.queryStart(int,String,String,int,int,List,Class)
Example:
QueryResultqR4 = maapi.queryStart(th,"/mtest/servers/server[ip='1.2.3.4']", "/",3,1, Arrays.asList("name", "ip", "port"), ResultTypeKeyPath.class); for(QueryResult.Entry entry : qR4){ List rsValue = entry.value(); for(ResultTypeKeyPath typ: rsValue){ ConfObject[] v0 = typ.keyPath(); System.out.println("path = " + Arrays.toString(v0)); } }
Modifier and Type | Method and Description |
---|---|
ConfObject[] |
keyPath()
Retrieves the result keypath from a query
|
ConfObject[] keyPath()