Interface TemplateProvider
-
- All Known Implementing Classes:
BlankTemplateProvider
,XmiTemplateProvider
public interface TemplateProvider
Template provider interface.- Since:
- 1.17
- Author:
- Mat Hansen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 givenreference
of the givenowner
object.java.util.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 givenreference
of the givenowner
object.
-
-
-
Method Detail
-
canProvideTemplates
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 givenreference
of the givenowner
object.- Parameters:
owner
- the object owning areference
to be assigned from a templatereference
- a reference feature of theowner
that is to be assigned from a template. If thereference
is acontainment
then theowner
would be thecontainer
of the template- Returns:
- whether I have any templates to offer
-
provideTemplates
java.util.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 givenreference
of the givenowner
object. This will only be called for anowner
andreference
for which the receiver previously answeredtrue
to an invocation of thecanProvideTemplates(EObject, EReference)
query.- Parameters:
owner
- the object owning areference
to be assigned from a templatereference
- a reference feature of theowner
that is to be assigned from a template. If thereference
is acontainment
then theowner
would be thecontainer
of the template- Returns:
- my available templates, or an empty set if none (never
null
)
-
-