Interface IModelObjectAdopterParticipant<T extends org.eclipse.emf.ecore.EObject>

Type Parameters:
T - the model type to adopt
All Known Subinterfaces:
IAdoptedObjectUpdater<T>, IAfterAdopt<T>
All Known Implementing Classes:
AccountingRegisterAdopterParticipant, AccountingRegisterDimensionAdopterParticipant, AccountingRegisterResourceAdopterParticipant, AccumulationRegisterAdopterParticipant, AddressingAttributeAdopterParticipant, BaseFormAdopterParticipant, BaseFormObjectAdopterParticipant, BasicCommandAdopterParticipant, BasicFeatureAdopterParticipant, BasicFormAdopterParticipant, BasicTemplateAdopterParticipant, BotAdopterParticipant, BslModuleAdopterParticipant, BusinessProcessAdopterParticipant, CalculationRegisterAdopterParticipant, CatalogAdopterParticipant, ChartOfAccountsAdopterParticipant, ChartOfCalculationTypesAdopterParticipant, ChartOfCharacteristicTypesAdopterParticipant, ColumnAdopterParticipant, CommandGroupAdopterParticipant, CommonAttributeAdopterParticipant, CommonFormAdopterParticipant, CommonModuleAdopterParticipant, CommonPictureAdopterParticipant, ConfigurationAdopterParticipant, ConstantAdopterParticipant, CubeAdopterParticipant, DataCompositionAppearanceTemplateAdopterParticipant, DataCompositionSchemaAdopterParticipant, DataProcessorAdopterParticipant, DefinedTypeAdopterParticipant, DimensionAdopterParticipant, DimensionTableAdopterParticipant, DocumentAdopterParticipant, DocumentJournalAdopterParticipant, DocumentNumeratorAdopterParticipant, EnumAdopterParticipant, EventSubscriptionAdopterParticipant, ExchangePlanAdopterParticipant, ExchangePlanContentItemAdopterParticipant, FieldAdopterParticipant, FileAwareTextDocumentAdopterParticipant, FilterCriterionAdopterParticipant, FormAdopterParticipant, FormAttributeAdopterParticipant, FormCommandAdopterParticipant, FormParameterAdopterParticipant, FunctionAdopterParticipant, FunctionalOptionAdopterParticipant, GeographicalSchemaAdopterParticipant, GraphicalSchemeAdopterParticipant, GraphicalSchemeItemAdopterParticipant, HtmlDocumentAdopterParticipant, HTTPServiceAdopterParticipant, InformationRegisterAdopterParticipant, IntegrationServiceAdopterParticipant, LanguageAdopterParticipant, MdObjectAdopterParticipant, MdStyleAdopterParticipant, PackageAdopterParticipant, PackageItemAdopterParticipant, PredefinedItemAdopterParticipant, ReportAdopterParticipant, ResourceAdopterParticipant, RoleAdopterParticipant, SequenceAdopterParticipant, SequenceDimensionAdopterParticipant, SessionParameterAdopterParticipant, SettingsStorageAdopterParticipant, SpreadsheetDocumentAdopterParticipant, StyleAdopterParticipant, StyleItemAdopterParticipant, SubsystemAdopterParticipant, TableAdopterParticipant, TaskAdopterParticipant, WebServiceAdoptionParticipant, WebSocketClientAdopterParticipant, XDTOPackageAdopterParticipant

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 in plugin.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 implement IAfterAdopt 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:
  • Method Summary

    Modifier and Type
    Method
    Description
    adopt(T nativeObject, Version version, IAdopterContext context)
    Adopt model object to use in V8 configuration extension project.
  • Method Details

    • 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 be null
      version - the 1C:Enterprise runtime version, cannot be null
      context - the adopter context, cannot be null
      Returns:
      adopted model object, never null