public interface IModelMappingProvider
extends org.eclipse.gmf.runtime.common.core.service.IProvider
EObject
of a given type 'EClass
'
To expose the implementation from ModelMappingService The implementor of this interface should register the implementation with com.ibm.xtools.mmi.core.ModelMappingProviders extension point.
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.EObject |
adapt(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
java.lang.Object source,
org.eclipse.emf.ecore.EClass targetKind)
Adapts
object to an EObject of a given metatype targetKind . |
boolean |
canAdapt(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
java.lang.Object source,
org.eclipse.emf.ecore.EClass targetKind)
Testing mechanism to determine whether this provider can adapt a given
object to an EObject of a particular meta-type targetKind . |
boolean |
canResolve(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
StructuredReference vr,
org.eclipse.emf.ecore.EClass eClass)
Testing mechanism to determine whether this provider can resolve a given
vr to an EObject , based on information encoded in StructuredReference . |
org.eclipse.emf.ecore.EObject |
resolve(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
StructuredReference vr,
org.eclipse.emf.ecore.EClass eClass)
Resolves
vr to a proper EObject , based on information
encoded in StructuredReference |
org.eclipse.emf.ecore.EObject adapt(org.eclipse.emf.transaction.TransactionalEditingDomain domain, java.lang.Object source, org.eclipse.emf.ecore.EClass targetKind)
object
to an EObject
of a given metatype targetKind
.domain
- Editing domain Contextsource
- Object to be adapted.targetKind
- Meta-class of the EObject
to be created.ITarget
boolean canAdapt(org.eclipse.emf.transaction.TransactionalEditingDomain domain, java.lang.Object source, org.eclipse.emf.ecore.EClass targetKind)
object
to an EObject
of a particular meta-type targetKind
.domain
- Editing domain Contextsource
- Object to be adapted.targetKind
- Kind of EObject
to be created.true
if this provider can adapt, else false
.org.eclipse.emf.ecore.EObject resolve(org.eclipse.emf.transaction.TransactionalEditingDomain domain, StructuredReference vr, org.eclipse.emf.ecore.EClass eClass)
vr
to a proper EObject
, based on information
encoded in StructuredReference
domain
- Editing domain Contextvr
- StructuredReference to resolve.eClass
- EClass
of the StructuredReference
.ITarget
as encoded in StructuredReference
boolean canResolve(org.eclipse.emf.transaction.TransactionalEditingDomain domain, StructuredReference vr, org.eclipse.emf.ecore.EClass eClass)
vr
to an EObject
, based on information encoded in StructuredReference
.domain
- Editing domain Contextvr
- StructuredReference
to be resolved to EObject
.eClass
- EClass
of the StructuredReference
.true
if this provider can resolve, else false
.