Interface IAdopterContext
-
- All Known Subinterfaces:
IAdopterContext.ITransactionalAdopterContext
public interface IAdopterContext
Context for adoption that is passed to a model adopter participant. Allows participants to invoke a default adoption of the specified native object, for example, child metadata objects or some referenced metadata objects. Context may actual be an instance ofIInTransactionAdopterContext
.- See Also:
IAdopterContext.ITransactionalAdopterContext
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IAdopterContext.ITransactionalAdopterContext
Adoption context extension that is in adoption process with some associated BM transaction to attach adopted objects to.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends org.eclipse.emf.ecore.EObject>
Tadopt(T nativeObject)
Invokes default adoption of the specified native object.
-
-
-
Method Detail
-
adopt
<T extends org.eclipse.emf.ecore.EObject> T adopt(T nativeObject)
Invokes default adoption of the specified native object. It should never be invoked on the element received as a parameter of theIModelObjectAdopterParticipant.adopt(EObject, Version, IAdopterContext)
orIAdoptedObjectUpdater.updateAdopted(EObject, EObject, IAdopterContext)
methods.If the requested native object is already adopted, method just returns this already adopted object.
- Parameters:
nativeObject
- the native metadata object to adopt, cannot benull
- Returns:
- adopted metadata object, never
null
-
-