Package com._1c.g5.v8.dt.core.provider
Class ResourceImportHelper
- java.lang.Object
-
- com._1c.g5.v8.dt.core.provider.ResourceImportHelper
-
public class ResourceImportHelper extends Object
Resource import helper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResourceImportHelper.ILoadOptionsProvider
Load options provider.
-
Constructor Summary
Constructors Constructor Description ResourceImportHelper(IResourceContentImporter.IMergeStrategy mergeStrategy, ISymbolicNameService symbolicNameService, IRuntimeVersionSupport runtimeVersionSupport, IResourceContentImporterExtensionManager resourceContentImporterExtensionManager)
Constructs a new instance with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBmObject
performImport(IBmEngine engine, IBmTransaction transaction, IDtProject project, String fqn, org.eclipse.core.runtime.IPath path, InputStream inputStream, IBmObject existingObject, boolean fullOverride, boolean resolveExternalReferencesDuringImport, ResourceImportHelper.ILoadOptionsProvider loadOptionsProvider)
Imports the only object residing in the specified resource.
-
-
-
Constructor Detail
-
ResourceImportHelper
public ResourceImportHelper(IResourceContentImporter.IMergeStrategy mergeStrategy, ISymbolicNameService symbolicNameService, IRuntimeVersionSupport runtimeVersionSupport, IResourceContentImporterExtensionManager resourceContentImporterExtensionManager)
Constructs a new instance with the specified parameters.- Parameters:
mergeStrategy
- the merge strategy to use, may not benull
.qualifiedNameFilePathConverter
- the qualified name file path converter to use, may not benull
.symbolicNameService
- the symbolic name service to use, may not benull
.runtimeVersionSupport
- the runtime version support to use, may not benull
.resourceContentImporterExtensionManager
- the import extensions manager, may not benull
.
-
-
Method Detail
-
performImport
public IBmObject performImport(IBmEngine engine, IBmTransaction transaction, IDtProject project, String fqn, org.eclipse.core.runtime.IPath path, InputStream inputStream, IBmObject existingObject, boolean fullOverride, boolean resolveExternalReferencesDuringImport, ResourceImportHelper.ILoadOptionsProvider loadOptionsProvider)
Imports the only object residing in the specified resource. In case the resource contains no objects or more than one objects, the behaviour of this method is not specified.- 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
.fqn
- The FQN to assign to the imported object. May not benull
.path
- The path to the resource to import object from. May not benull
.inputStream
- The input stream to read the resource data from. May not benull
.existingObject
- The existing object if any. May benull
.fullOverride
- The flag indicating that the full override strategy rather than merge must be used in case the object already exists.resolveExternalReferencesDuringImport
- The flag indicating whether external refererences need to be resolved during the import.loadOptionsProvider
- The resource load options provider. May benull
.- Returns:
- the only top object residing in the resource. Never
null
.
-
-