Class BasicMdObjectInitializer<M extends MdObject>

    • Field Detail

      • mdTypeUtil

        @Inject
        protected MdTypeUtil mdTypeUtil
    • Constructor Detail

      • BasicMdObjectInitializer

        public BasicMdObjectInitializer()
    • Method Detail

      • createChildObject

        public org.eclipse.emf.ecore.EObject createChildObject​(org.eclipse.emf.ecore.EClass childType,
                                                               org.eclipse.emf.ecore.EObject context,
                                                               Version version)
        Description copied from interface: IMdObjectInitializer
        Creates context child object of type childType
        Specified by:
        createChildObject in interface IMdObjectInitializer<M extends MdObject>
        Parameters:
        childType - the child object type (not null)
        context - the parent object (not null)
        version - the 1C:Enterprise runtime version (not null)
        Returns:
        properly initialized metadata child object or null if there cannot be child object
      • initTypesUUID

        protected <T extends AbstractMdType> T initTypesUUID​(T type)
        Generates UUIDs for produced type
      • getTypeProvider

        protected IEObjectProvider getTypeProvider​(Version version)
        Returns type provider for given version
        Parameters:
        version - the version (not null)
        Returns:
        the type provider appropriate for given version
      • createDefault

        protected org.eclipse.emf.ecore.EObject createDefault​(org.eclipse.emf.ecore.EClass type)
        Creates object of type type. This implementation also generates UUID if created object is instance of MdObject
        Parameters:
        type - the object type to create
        Returns:
        object of type type
      • newManagedForm

        protected org.eclipse.emf.ecore.EObject newManagedForm​(org.eclipse.emf.ecore.EClass formType)
        Creates new managed form of formType type
        Parameters:
        formType - actual type of managed form (must be successor of BasicForm)
        Returns:
        new managed form formType type
      • newCommand

        protected org.eclipse.emf.ecore.EObject newCommand​(org.eclipse.emf.ecore.EClass commandType,
                                                           org.eclipse.emf.ecore.EObject context,
                                                           Version version)
        Creates new command of commandType type
        Parameters:
        commandType - actual type of command (must be successor of BasicCommand)
        context - the parent object (not null)
        version - the 1C:Enterprise runtime version (not null)
        Returns:
        new command commandType type