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:
QueryResultqR4 = maapi.queryStart(th,"/mtest/servers/server[ip='1.2.3.4']", "/", 3,1, Arrays.asList("name", "ip", "port"), ResultTypeKeyPathValue.class); for(QueryResult.Entry entry : qR4){ List rsValue = entry.value(); for(ResultTypeKeyPathValue typ: rsValue){ ConfObject[] v0 = typ.keyPath(); System.out.println("path = " + Arrays.toString(v0)); ConfValue v1 = typ.confValue(); System.out.println("value = " + v1); } }
Modifier and Type | Method and Description |
---|---|
ConfValue |
confValue()
Retrieves the result value from a query
|
keyPath
ConfValue confValue()