Interface EMFFormsFilteredViewService
-
- All Superinterfaces:
EMFFormsViewService
- All Known Implementing Classes:
ViewProviderImpl
public interface EMFFormsFilteredViewService extends EMFFormsViewService
A specialization of theEMFFormsViewService
protocol that makes explicit the support for filtering views by matching properties requested by the client. Thus it understands how to interact withIFilteredViewProvider
s that are #addProvider(IViewProvider) added to it.- Since:
- 1.22
- See Also:
IFilteredViewProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default VView
getView(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties)
Retrieve aVView
for a domain modelobject
without any required filter keys.VView
getView(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties, java.util.Collection<java.lang.String> requiredKeys)
-
Methods inherited from interface org.eclipse.emf.ecp.view.spi.provider.EMFFormsViewService
addProvider, removeProvider
-
-
-
-
Method Detail
-
getView
default VView getView(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties)
Retrieve aVView
for a domain modelobject
without any required filter keys.- Specified by:
getView
in interfaceEMFFormsViewService
- Parameters:
object
- the domain model object for which a view is to be requestedproperties
- theproperties
for providing the view, that may or may not include matching filters- Returns:
- a view model for the given domain model
object
ornull
if no suitable provider could be found to provide one
-
getView
VView getView(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties, java.util.Collection<java.lang.String> requiredKeys)
- Parameters:
object
- the domain model object for which a view is to be requestedproperties
- theproperties
for providing the view, that may or may not include matching filtersrequiredKeys
- a subset (possibly empty) of the keys in theproperties
that must be matched by any view model that I would provide. If any of these keys does not match a view model, then that view model must not be provided. Otherwise, it may just be less preferred than some other view model that does match- Returns:
- a view model for the given domain model
object
ornull
if no suitable provider could be found to provide one
-
-