Package com._1c.g5.v8.dt.binary.resource
Class BinaryResourceContentImporter
- java.lang.Object
-
- com._1c.g5.v8.dt.core.provider.BaseSingleResourceObjectImporter
-
- com._1c.g5.v8.dt.binary.resource.BinaryResourceContentImporter
-
- All Implemented Interfaces:
IResourceContentImporter
public final class BinaryResourceContentImporter extends BaseSingleResourceObjectImporter
IResourceContentImporter
implementation for BinaryData.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
IResourceContentImporter.IImportTask, IResourceContentImporter.IMergeStrategy
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
PLATFORM_VERSION
-
-
Constructor Summary
Constructors Constructor Description BinaryResourceContentImporter(IQualifiedNameFilePathConverter qualifiedNameFilePathConverter)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doImportContent(IBmEngine engine, IBmTransaction transaction, IDtProject project, org.eclipse.core.runtime.IPath path, String fqn, IResourceAccessor resourceAccessor, boolean fullOverride)
Subclasses implement this method to provide import logics.int
getOrder()
Gets importer order.boolean
supports(org.eclipse.core.runtime.IPath path)
Checks if this importer supports the specified resource.-
Methods inherited from class com._1c.g5.v8.dt.core.provider.BaseSingleResourceObjectImporter
createTasks, processTask
-
-
-
-
Constructor Detail
-
BinaryResourceContentImporter
@Inject public BinaryResourceContentImporter(IQualifiedNameFilePathConverter qualifiedNameFilePathConverter)
Constructs a new instance.- Parameters:
qualifiedNameFilePathConverter
- The qualified-name-to-file-path converter. May not benull
.
-
-
Method Detail
-
getOrder
public int getOrder()
Description copied from interface:IResourceContentImporter
Gets importer order. The lower the order value is, the earlier tasks created by this importer must be processed. The value ofInteger.MAX_VALUE
means that the tasks created by this importer should be processed when requested explicitly by the user.- Returns:
- the order value.
- See Also:
IBmModelManager.forceImport(IDtProject, String)
-
supports
public boolean supports(org.eclipse.core.runtime.IPath path)
Description copied from interface:IResourceContentImporter
Checks if this importer supports the specified resource.- Parameters:
path
- The path to the resource to check. May not benull
.- Returns:
true
if the resource is supported,false
otherwise.
-
doImportContent
protected void doImportContent(IBmEngine engine, IBmTransaction transaction, IDtProject project, org.eclipse.core.runtime.IPath path, String fqn, IResourceAccessor resourceAccessor, boolean fullOverride)
Description copied from class:BaseSingleResourceObjectImporter
Subclasses implement this method to provide import logics.- Specified by:
doImportContent
in classBaseSingleResourceObjectImporter
- Parameters:
engine
- The BM engine to import the object into. May not benull
.transaction
- The BM transaction to import the object within. May not benull
.project
- The project the object belongs to. May not benull
.path
- The resource path to import the object from. May not benull
.fqn
- The fully qualified name of the object. May not benull
.resourceAccessor
- The accessor to use to obtain the resource content etc. May not benull
.fullOverride
- The flag indicating that the full override strategy rather than merge must be used in case the object already exists.
-
-