public interface IFilteredViewProvider extends IViewProvider
properties
parameter of each API method.NOT_APPLICABLE
Modifier and Type | Method and Description |
---|---|
default double |
canProvideViewModel(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties)
Queries whether I can provide
without any filter properties being required.
|
double |
canProvideViewModel(org.eclipse.emf.ecore.EObject object,
VViewModelProperties properties,
Collection<String> requiredKeys)
Queries the confidence with which I can provide a view model for the given domain model
object where some keys in the properties are required to be matched in
an implementation-specific way by the view models the I have access to. |
default VView |
provideViewModel(org.eclipse.emf.ecore.EObject object,
VViewModelProperties properties)
Obtains a view model
without any filter properties being required.
|
VView |
provideViewModel(org.eclipse.emf.ecore.EObject object,
VViewModelProperties properties,
Collection<String> requiredKeys)
Obtains the view model that I can
provide
for the given domain model
object . |
default double canProvideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
canProvideViewModel
in interface IViewProvider
eObject
- the EObject
to create aproperties
- the properties
for providing the viewVView
for the
provided EObject
or IViewProvider.NOT_APPLICABLE
if it doesn't fitdouble canProvideViewModel(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties, Collection<String> requiredKeys)
object
where some keys in the properties
are required to be matched in
an implementation-specific way by the view models the I have access to.object
- the domain model object for which a view is to be requestedproperties
- the properties
for providing the view, that
may or may not include matching filtersrequiredKeys
- a subset (possibly empty) of the keys in the properties
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 matchVView
for the given object
, or
IViewProvider.NOT_APPLICABLE
if I cannot provide a view modeldefault VView provideViewModel(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties)
provideViewModel
in interface IViewProvider
object
- the EObject
to generate the VView
forproperties
- the properties
for providing the viewVView
VView provideViewModel(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties, Collection<String> requiredKeys)
object
. This method is only called if a previous invocation of
canProvideViewModel(EObject, VViewModelProperties, Collection)
with the same arguments
returned the highest positive result amongst all available providers.object
- the domain model object for which a view is to be requestedproperties
- the properties
for providing the view, that
may or may not include matching filtersrequiredKeys
- a subset (possibly empty) of the keys in the properties
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 matchCopyright © 2019. All rights reserved.