Package com._1c.g5.v8.dt.core.provider
Class BaseBmBlobExporter
- java.lang.Object
-
- com._1c.g5.v8.dt.core.provider.BaseBmBlobExporter
-
- All Implemented Interfaces:
IBmBlobExporter
- Direct Known Subclasses:
BinaryDataExporter
public abstract class BaseBmBlobExporter extends Object implements IBmBlobExporter
BaseIBmBlobExporter
implementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseBmBlobExporter(IBmModelManager modelManager)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BmFileDeletionResult
deleteFile(IDtProject project, IBmNamespace namespace, String fqn, String type)
Deletes the file(s) the blob is saved in as a response to the blob's deletion.protected abstract org.eclipse.core.runtime.IPath
getWorkspaceFilePath(String fqn, String type)
Gets project-relative workspace file path.BmFileSaveResult
saveFile(IDtProject project, IBmNamespace namespace, String fqn, String type)
Exports the specified blob and saves it in the corresponding workspace file(s) as a response to the blob's creation or modification.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.core.provider.IBmBlobExporter
supports
-
-
-
-
Constructor Detail
-
BaseBmBlobExporter
protected BaseBmBlobExporter(IBmModelManager modelManager)
Constructs a new instance.- Parameters:
modelManager
- The model manager. May not benull
.
-
-
Method Detail
-
saveFile
public final BmFileSaveResult saveFile(IDtProject project, IBmNamespace namespace, String fqn, String type) throws org.eclipse.core.runtime.CoreException
Description copied from interface:IBmBlobExporter
Exports the specified blob and saves it in the corresponding workspace file(s) as a response to the blob's creation or modification.- Specified by:
saveFile
in interfaceIBmBlobExporter
- Parameters:
project
- The project the blob belongs to. May not benull
.namespace
- The namespace the blob belongs to. May not benull
.fqn
- The FQN of the blob. May not benull
.type
- The type of the blob. May not benull
.- Returns:
- an instance of
BmFileSaveResult
containing information about the saved file(s). - Throws:
org.eclipse.core.runtime.CoreException
- if an error occurs.
-
deleteFile
public final BmFileDeletionResult deleteFile(IDtProject project, IBmNamespace namespace, String fqn, String type) throws org.eclipse.core.runtime.CoreException
Description copied from interface:IBmBlobExporter
Deletes the file(s) the blob is saved in as a response to the blob's deletion.- Specified by:
deleteFile
in interfaceIBmBlobExporter
- Parameters:
project
- The project the blob belongs to. May not benull
.namespace
- The namespace the blob belongs to. May not benull
.fqn
- The FQN of the blob. May not benull
.type
- The type of the blob. May not benull
.- Returns:
- an instance of
BmFileDeletionResult
containing information about the deleted file(s). - Throws:
org.eclipse.core.runtime.CoreException
- if an error occurs.
-
getWorkspaceFilePath
protected abstract org.eclipse.core.runtime.IPath getWorkspaceFilePath(String fqn, String type)
Gets project-relative workspace file path.- Parameters:
fqn
- The FQN of the corresponding BM file. May not benull
.type
- The type of the file. May not benull
.- Returns:
- the workspace file path or
null
if no file path corresponds to the specified parameters.
-
-