public interface QueryAgent extends Agent
Modifier and Type | Method and Description |
---|---|
<T> T |
as(java.lang.Class<T> clazz)
Try to get a instance of target class for this query agent, the target class
is usually a
OperationAgent or a native Component if it cannot get a instance of target class, it will throw AgentException . |
<T> boolean |
is(java.lang.Class<T> clazz)
Can get a instance of target class for this query agent.
|
ComponentAgent |
query(java.lang.String selector)
to find the first component agent with the selector in this query agent.
|
java.util.List<ComponentAgent> |
queryAll(java.lang.String selector)
to find the component agents with the selector in this query agent.
|
getClient, getDelegatee
ComponentAgent query(java.lang.String selector)
selector
- the selectorjava.util.List<ComponentAgent> queryAll(java.lang.String selector)
selector
- the selector<T> T as(java.lang.Class<T> clazz)
OperationAgent
or a native Component
AgentException
.clazz
- class of specify operation.<T> boolean is(java.lang.Class<T> clazz)
clazz
- the class cast to.Copyright © 2019 Potix Corporation. All rights reserved.