Interface IModelObjectAdopterParticipant<T extends org.eclipse.emf.ecore.EObject>
-
- Type Parameters:
T
- the model type to adopt
- All Known Subinterfaces:
IAdoptedObjectUpdater<T>
,IAfterAdopt<T>
public interface IModelObjectAdopterParticipant<T extends org.eclipse.emf.ecore.EObject>
Model object adoption participant. Allows client to describe adoption for some specific model type. Participants may be defined by extensions. A model object adoption participant is defined inplugin.xml
.Following is an example definition of a model object adoption participant:
<extension point="com._1c.g5.v8.dt.md.extension.modelObjectAdopterParticipant"> <participant class="com._1c.g5.v8.dt.some.extension.adopt.participants.ModelClassAdopterParticipant" id="com._1c.g5.v8.dt.some.extension.adopt.participants.ModelClass"> <eClass ePackageNsUri="http://g5.1c.ru/v8/dt/some/model" eClassName="ModelClass"> </eClass> </participant> </extension>
Implementations may also implement
IAdoptedObjectUpdater
to provide an ability to update already adopted model object or implementIAfterAdopt
to provide some logic to invoke after adoption.Instances are not intended to be explicitly used by client. Clients may use
IModelObjectAdopter
instead.- See Also:
IAdopterContext
,IAdoptedObjectUpdater
,IAfterAdopt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
adopt(T nativeObject, Version version, IAdopterContext context)
Adopt model object to use in V8 configuration extension project.
-
-
-
Method Detail
-
adopt
T adopt(T nativeObject, Version version, IAdopterContext context)
Adopt model object to use in V8 configuration extension project.- Parameters:
nativeObject
- the native model object to adopt, cannot benull
version
- the 1C:Enterprise runtime version, cannot benull
context
- the adoptercontext
, cannot benull
- Returns:
- adopted model object, never
null
-
-