Package com._1c.g5.v8.dt.compare.merge
Class MergeContext
java.lang.Object
com._1c.g5.v8.dt.compare.merge.MergeContext
- Direct Known Subclasses:
FormMergeContext
,MdMergeContext
A context to store all information needed on merge process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ComparisonContext
The comparison context.final boolean
The custom merge available flag.final IMergeSession
The merge session.final TopComparisonNode
The top node being merged.final AbstractComparedEmfObjects<?>
The triple of topEObject
s being merged related to the top node. -
Constructor Summary
ConstructorsConstructorDescriptionMergeContext
(ComparisonContext comparisonContext, IMergeSession mergeSession, TopComparisonNode topNode, AbstractComparedEmfObjects<?> topParents) Creates context instance.MergeContext
(MergeContext mergeContext, boolean customMergeAvailable) Creates context instance based on given context. -
Method Summary
Modifier and TypeMethodDescriptionGets the merge BM transaction.boolean
Tells whether the top node from this context is added fully from the other side.void
setAddedFullyFromOther
(boolean addedFullyFromOther) Sets whether the top node from this context is added fully from the other side.
-
Field Details
-
comparisonContext
The comparison context. -
mergeSession
The merge session. -
topNode
The top node being merged. -
topParents
The triple of topEObject
s being merged related to the top node. -
customMergeAvailable
public final boolean customMergeAvailableThe custom merge available flag.
-
-
Constructor Details
-
MergeContext
public MergeContext(ComparisonContext comparisonContext, IMergeSession mergeSession, TopComparisonNode topNode, AbstractComparedEmfObjects<?> topParents) Creates context instance.- Parameters:
comparisonContext
- the comparison context, cannot benull
mergeSession
- the merge session, cannot benull
topNode
- the top node being merged, cannot benull
topParents
- the triple of top EObjects, can benull
for non-model entities
-
MergeContext
Creates context instance based on given context.- Parameters:
mergeContext
- the base context, cannot benull
.customMergeAvailable
- the custom merge available flag.
-
-
Method Details
-
getMergeBmTransaction
Gets the merge BM transaction.- Returns:
- The merge transaction, cannot be
null
.
-
isAddedFullyFromOther
public boolean isAddedFullyFromOther()Tells whether the top node from this context is added fully from the other side. This is an experimental feature, intended for internal use only.- Returns:
true
if the top node is added fully from the other side,false
otherwise
-
setAddedFullyFromOther
public void setAddedFullyFromOther(boolean addedFullyFromOther) Sets whether the top node from this context is added fully from the other side. This is an experimental feature, intended for internal use only.- Parameters:
addedFullyFromOther
-true
if the top node is added fully from the other side
-