Class BinaryDataExporter

    • Constructor Detail

      • BinaryDataExporter

        @Inject
        public BinaryDataExporter​(IBmModelManager modelManager,
                                  org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter,
                                  IQualifiedNameFilePathConverter qualifiedNameFilePathConverter)
        Constructs a new instance.
        Parameters:
        modelManager - The model manager. May not be null.
        qualifiedNameConverter - The qualified name converter. May not be null.
        qualifiedNameFilePathConverter - The qualified name file path converter. May not be null.
    • Method Detail

      • supports

        public boolean supports​(String fqn)
        Description copied from interface: IBmBlobExporter
        Checks if the exporter supports the blob with the specified FQN.
        Parameters:
        fqn - The FQN to check. May not be null.
        Returns:
        true if the exporter supports the blob with the specified FQN, false otherwise.
      • getWorkspaceFilePath

        protected org.eclipse.core.runtime.IPath getWorkspaceFilePath​(String fqn,
                                                                      String type)
        Description copied from class: BaseBmBlobExporter
        Gets project-relative workspace file path.
        Specified by:
        getWorkspaceFilePath in class BaseBmBlobExporter
        Parameters:
        fqn - The FQN of the corresponding BM file. May not be null.
        type - The type of the file. May not be null.
        Returns:
        the workspace file path or null if no file path corresponds to the specified parameters.