Package com._1c.g5.v8.dt.compare.merge
Class MergeContext
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.merge.MergeContext
-
public class MergeContext extends Object
A context to store all information needed on merge process.
-
-
Field Summary
Fields Modifier and Type Field Description ComparisonContextcomparisonContextThe comparison context.booleancustomMergeAvailableThe custom merge available flag.IMergeSessionmergeSessionThe merge session.TopComparisonNodetopNodeThe top node being merged.AbstractComparedEmfObjects<?>topParentsThe triple of topEObjects being merged related to the top node.
-
Constructor Summary
Constructors Constructor Description MergeContext(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBmTransactiongetMergeBmTransaction()Gets the merge BM transaction.booleanisAddedFullyFromOther()Tells whether the top node from this context is added fully from the other side.voidsetAddedFullyFromOther(boolean addedFullyFromOther)Sets whether the top node from this context is added fully from the other side.
-
-
-
Field Detail
-
comparisonContext
public final ComparisonContext comparisonContext
The comparison context.
-
mergeSession
public final IMergeSession mergeSession
The merge session.
-
topNode
public final TopComparisonNode topNode
The top node being merged.
-
topParents
public final AbstractComparedEmfObjects<?> topParents
The triple of topEObjects being merged related to the top node.
-
customMergeAvailable
public final boolean customMergeAvailable
The custom merge available flag.
-
-
Constructor Detail
-
MergeContext
public MergeContext(ComparisonContext comparisonContext, IMergeSession mergeSession, TopComparisonNode topNode, AbstractComparedEmfObjects<?> topParents)
Creates context instance.- Parameters:
comparisonContext- the comparison context, cannot benullmergeSession- the merge session, cannot benulltopNode- the top node being merged, cannot benulltopParents- the triple of top EObjects, can benullfor non-model entities
-
MergeContext
public MergeContext(MergeContext mergeContext, boolean customMergeAvailable)
Creates context instance based on given context.- Parameters:
mergeContext- the base context, cannot benull.customMergeAvailable- the custom merge available flag.
-
-
Method Detail
-
getMergeBmTransaction
public IBmTransaction 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:
trueif the top node is added fully from the other side,falseotherwise
-
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-trueif the top node is added fully from the other side
-
-