Class DefaultModuleExtensionService

    • Constructor Detail

      • DefaultModuleExtensionService

        public DefaultModuleExtensionService()
    • Method Detail

      • getExtensionPrefix

        public String getExtensionPrefix​(Module module)
        Description copied from interface: IModuleExtensionService
        Gets prefix of extension project by extension Bsl module
        Specified by:
        getExtensionPrefix in interface IModuleExtensionService
        Parameters:
        module - extension Bsl module, can't be null
        Returns:
        prefix of extension project by extension Bsl module, never null
      • getSourceObject

        public org.eclipse.emf.ecore.EObject getSourceObject​(org.eclipse.emf.ecore.EObject object)
        Description copied from interface: IModuleExtensionService
        Gets adoptable EObject by extension EObject. See method IModelObjectAdopter#getSourceModule(EObject)
        Specified by:
        getSourceObject in interface IModuleExtensionService
        Parameters:
        object - extension EObject, can't be null
        Returns:
        adoptable EObject, can be null if adoptable object wasn't found
      • getExtensionMethods

        public Map<Pragma,​Method> getExtensionMethods​(Module extensionModule,
                                                            String methodName)
        Description copied from interface: IModuleExtensionService
        Gets extension method overriding adoptable method with name methodName
        Specified by:
        getExtensionMethods in interface IModuleExtensionService
        Parameters:
        extensionModule - extension module, can't be null
        methodName - name of the adoptable method, can't be null
        Returns:
        extension methods by Pragma literalc correspondence to the adoptable method with name methodName, never null
      • getSourceMethodForFormEventHandler

        public Method getSourceMethodForFormEventHandler​(Module extensionModule,
                                                         String methodName,
                                                         BslEventsService eventService)
        Description copied from interface: IModuleExtensionService
        Gets adoptable method by event handler method name from extension form module
        Specified by:
        getSourceMethodForFormEventHandler in interface IModuleExtensionService
        Parameters:
        extensionModule - form module extension, can't be null
        methodName - name of the event handler extension, can't be null
        eventService - actual BslEventsService, can't be null
        Returns:
        adoptable method by event handler method name from extension form module, can be null if adoptable method wasn't found
      • isCorrectVersionForAnnotationPragma

        public boolean isCorrectVersionForAnnotationPragma​(Module module)
        Description copied from interface: IModuleExtensionService
        Checks that annotation available for methods of this module. Annotation is unsupported for project version is less than 8.3.9 or for configuration with compatibility mode less than 8.3.9
        Specified by:
        isCorrectVersionForAnnotationPragma in interface IModuleExtensionService
        Parameters:
        module - checking Module, can't be null
        Returns:
        true if annotation available for methods of this module, false otherwise
      • isAnnotationPragmaAllowed

        public boolean isAnnotationPragmaAllowed​(IV8Project project)
        Description copied from interface: IModuleExtensionService
        Checks that annotation available for methods of this module. Annotation is unsupported for project version is less than 8.3.9 or for configuration with compatibility mode less than 8.3.9
        Specified by:
        isAnnotationPragmaAllowed in interface IModuleExtensionService
        Parameters:
        project - checking IV8Project, can't be null
        Returns:
        true if annotation available for methods of this module, false otherwise