public interface TemplateProvider
Modifier and Type | Method and Description |
---|---|
boolean |
canProvideTemplates(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
Queries whether the provider can provide templates that may be assigned
to the given
reference of the given owner object. |
Set<Template> |
provideTemplates(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
Obtains templates wrapping objects that can be assigned to the given
reference of the given owner object. |
boolean canProvideTemplates(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
reference
of the given owner
object.owner
- the object owning a reference
to be assigned from a templatereference
- a reference feature of the owner
that is to be assigned from a template.
If the reference
is a containment
then
the owner
would be the container
of the templateSet<Template> provideTemplates(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
reference
of the given owner
object. This will only
be called for an owner
and reference
for which the
receiver previously answered true
to an invocation of the
canProvideTemplates(EObject, EReference)
query.owner
- the object owning a reference
to be assigned from a templatereference
- a reference feature of the owner
that is to be assigned from a template.
If the reference
is a containment
then
the owner
would be the container
of the templatenull
)Copyright © 2019. All rights reserved.