Interface IBmObjectExporter

    • Method Detail

      • supports

        boolean supports​(org.eclipse.emf.ecore.EClass eClass)
        Checks if the exporter supports objects of the specified EMF class.
        Parameters:
        eClass - The EMF class to check. May not be null.
        Returns:
        true if the exporter supports the EMF class, false otherwise.
      • saveFile

        BmFileSaveResult saveFile​(IDtProject project,
                                  IBmNamespace namespace,
                                  long topObjectId)
                           throws org.eclipse.core.runtime.CoreException
        Exports the specified top object data and saves it in the corresponding workspace file(s) as a response to the object's creation or modification.
        Parameters:
        project - The project the top object belongs to. May not be null.
        namespace - The namespace the top object belongs to. May not be null.
        topObjectId - The identifier of the top object.
        Returns:
        an instance of BmFileSaveResult containing information about the saved file(s).
        Throws:
        org.eclipse.core.runtime.CoreException - if an error occurs.
      • deleteFile

        BmFileDeletionResult deleteFile​(IDtProject project,
                                        IBmNamespace namespace,
                                        org.eclipse.emf.ecore.EClass eClass,
                                        String fqn)
                                 throws org.eclipse.core.runtime.CoreException
        Deletes the file(s) the top object data is saved in as a response to the object's deletion.
        Parameters:
        project - The project the top object belongs to. May not be null.
        namespace - The namespace the top object belongs to. May not be null.
        eClass - The EMF class of the top object. May not be null.
        fqn - The FQN of the top object. May not be null.
        Returns:
        an instance of BmFileDeletionResult containing information about the deleted file(s).
        Throws:
        org.eclipse.core.runtime.CoreException - if an error occurs.