public class DerivedContentActionProvider extends Object implements MultiActionProvider
Constructor and Description |
---|
DerivedContentActionProvider(ActionProvider actionProvider) |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
canHandle(T subject)
Checks if an
ActionProvider supports a given subject. |
<T> List<Action> |
getActions(T input) |
String |
getId() |
public DerivedContentActionProvider(ActionProvider actionProvider)
public <T> List<Action> getActions(T input)
getActions
in interface MultiActionProvider
input
- object for which the ActionProvider
is requested to provide an Action
Action
object. If no action can be taken on the input, then
Collections.emptyList()
shall be returnedpublic String getId()
getId
in interface MultiActionProvider
ActionProvider
providespublic <T> boolean canHandle(T subject)
MultiActionProvider
ActionProvider
supports a given subject.canHandle
in interface MultiActionProvider
subject
- the input to checkThis work is licensed under a Creative Commons Attribution 4.0 International License.