Package com._1c.g5.v8.dt.core.provider
Class BaseSingleEmfResourceObjectImporter
- java.lang.Object
-
- com._1c.g5.v8.dt.core.provider.BaseSingleResourceObjectImporter
-
- com._1c.g5.v8.dt.core.provider.BaseSingleEmfResourceObjectImporter
-
- All Implemented Interfaces:
IResourceContentImporter
- Direct Known Subclasses:
CaiResourceContentImporter
,CmiResourceContentImporter
,HpwaResourceContentImporter
,ScheduleResourceContentImporter
public abstract class BaseSingleEmfResourceObjectImporter extends BaseSingleResourceObjectImporter
Base single object resource importer.
-
-
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 Modifier Constructor Description protected
BaseSingleEmfResourceObjectImporter(IResourceContentImporter.IMergeStrategy mergeStrategy, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, ISymbolicNameService symbolicNameService, IRuntimeVersionSupport runtimeVersionSupport, IResourceContentImporterExtensionManager resourceContentImporterExtensionManager)
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 objectPath, IResourceAccessor resourceAccessor, boolean fullOverride)
Subclasses implement this method to provide import logics.protected Map<Object,Object>
getLoadOptions(org.eclipse.emf.ecore.resource.Resource resource)
Subclasses override this method to provide custom resource load options.protected boolean
resolveExternalReferencesDuringImport()
Subclasses override this method to configure external reference resolving during the import of original XML document.-
Methods inherited from class com._1c.g5.v8.dt.core.provider.BaseSingleResourceObjectImporter
createTasks, processTask
-
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.IResourceContentImporter
getOrder, supports
-
-
-
-
Constructor Detail
-
BaseSingleEmfResourceObjectImporter
protected BaseSingleEmfResourceObjectImporter(IResourceContentImporter.IMergeStrategy mergeStrategy, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, ISymbolicNameService symbolicNameService, IRuntimeVersionSupport runtimeVersionSupport, IResourceContentImporterExtensionManager resourceContentImporterExtensionManager)
Constructs a new instance.- 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
-
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 returnsnull
.- Parameters:
resource
- The resource to provide load options for. May not benull
.- Returns:
- the load options. May 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.
-
doImportContent
protected final void doImportContent(IBmEngine engine, IBmTransaction transaction, IDtProject project, org.eclipse.core.runtime.IPath objectPath, 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
.objectPath
- The resource path to import the object from. 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.
-
-