public interface MultiActionProvider
Action for a given subject. Objects that the ActionProvider can handle are not restricted to a particular class and can be whatever the
ActionProvider is able to handle. | Modifier and Type | Method and Description |
|---|---|
<T> boolean |
canHandle(T subject)
Checks if an
ActionProvider supports a given subject. |
<T> List<Action> |
getActions(T subject) |
String |
getId() |
<T> List<Action> getActions(T subject)
subject - object for which the ActionProvider is requested to provide an ActionAction object. If no action can be taken on the input, then
Collections.emptyList() shall be returnedString getId()
ActionProvider
provides<T> boolean canHandle(T subject)
ActionProvider supports a given subject.subject - the input to checkThis work is licensed under a Creative Commons Attribution 4.0 International License.