Package com.tailf.maapi
Interface ResultTypeKeyPath
- All Superinterfaces:
ResultType
- All Known Subinterfaces:
ResultTypeKeyPathValue
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,"/mtest/servers/server[ip='1.2.3.4']",
"/",3,1,
Arrays.asList("name",
"ip",
"port"),
ResultTypeKeyPath.class);
for(QueryResult.Entry entry : qR4){
List<ResultTypeKeyPath> rsValue = entry.value();
for(ResultTypeKeyPath typ: rsValue){
ConfObject[] v0 = typ.keyPath();
System.out.println("path = " + Arrays.toString(v0));
}
}
-
Method Summary
-
Method Details
-
keyPath
ConfObject[] keyPath()Retrieves the result keypath from a query- Returns:
- keypath as
ConfObject[]
from the result
-