Class StandardBmObjectImporter

    • Method Detail

      • getLoadOptions

        protected Map<Object,​Object> getLoadOptions​(org.eclipse.emf.ecore.resource.Resource resource)
        Subclasses override this method to provide custom resource load options. The default implementation always returns null.
        Parameters:
        resource - The resource to provide load options for. May not be null.
        Returns:
        the load options. May be null.
      • handleResourceCreationOrModification

        protected final byte[] handleResourceCreationOrModification​(IBmPlatformTransaction transaction,
                                                                    IBmNamespace namespace,
                                                                    IDtProject project,
                                                                    org.eclipse.core.runtime.IPath path,
                                                                    InputStream content,
                                                                    boolean fullOverride)
        Description copied from class: TransactionalBmContentImporter
        Handles a data import process for an imported resource
        Specified by:
        handleResourceCreationOrModification in class TransactionalBmContentImporter
        Parameters:
        transaction - The data import BM transaction. Never null
        namespace - The target BM namespace for an import. Never null
        project - The target IDtProject. Never null
        path - The imported resource path. May not be null
        content - The imported content stream. May not be null
        fullOverride - Data full override import mode
        Returns:
        Signature of imported data. Never null
      • postProcess

        protected void postProcess​(IBmObject object)
        Post-processes the imported object.
        Parameters:
        object - The imported object. May not be null.
      • resolveExternalReferencesDuringImport

        protected boolean resolveExternalReferencesDuringImport()
        Subclasses override this method to configure external reference resolving during the import of original XML document.
        Returns:
        true if the external refererences need to be resolved during the import, false otherwise.