Package com._1c.g5.v8.dt.core.provider
Class ReplaceByFeatureStrategy2
- java.lang.Object
-
- com._1c.g5.v8.dt.core.provider.ReplaceByFeatureStrategy2
-
- All Implemented Interfaces:
IResourceContentImporter.IMergeStrategy
public final class ReplaceByFeatureStrategy2 extends Object implements IResourceContentImporter.IMergeStrategy
Enhanced implementation ofIResourceContentImporter.IMergeStrategy
interface based onReplaceByFeatureStrategy
.- See Also:
ReplaceByFeatureStrategy
-
-
Constructor Summary
Constructors Constructor Description ReplaceByFeatureStrategy2()
Constructs a new instance using fast containment list element matcher.ReplaceByFeatureStrategy2(boolean usePreciseContainmentListElementMatcher)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
merge(IBmTransaction transaction, org.eclipse.emf.ecore.EObject internalObject, org.eclipse.emf.ecore.EObject externalObject, org.eclipse.emf.ecore.resource.Resource externalResource, boolean fullOverride)
Performs object merge.
-
-
-
Constructor Detail
-
ReplaceByFeatureStrategy2
public ReplaceByFeatureStrategy2()
Constructs a new instance using fast containment list element matcher.
-
ReplaceByFeatureStrategy2
public ReplaceByFeatureStrategy2(boolean usePreciseContainmentListElementMatcher)
Constructs a new instance.- Parameters:
usePreciseContainmentListElementMatcher
- The flag indicating whether to use precise containment list element matcher rather than fast one.
-
-
Method Detail
-
merge
public void merge(IBmTransaction transaction, org.eclipse.emf.ecore.EObject internalObject, org.eclipse.emf.ecore.EObject externalObject, org.eclipse.emf.ecore.resource.Resource externalResource, boolean fullOverride)
Description copied from interface:IResourceContentImporter.IMergeStrategy
Performs object merge.- Specified by:
merge
in interfaceIResourceContentImporter.IMergeStrategy
- Parameters:
transaction
- The transaction to perform the merge within. May not benull
.internalObject
- The internal (belonging to the main object model and persisted in the long-term storage) object. May not benull
.externalObject
- The external (a temporary object containing data reflecting the physical resource contents to be loaded to the main object model) object. May not benull
.externalResource
- The external resource (the EMF-resource containing the external object). May not benull
.fullOverride
- The flag indicating whether the full override strategy must be used.
-
-