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 ComparisonContextThe comparison context.final booleanThe custom merge available flag.final IMergeSessionThe merge session.final TopComparisonNodeThe top node being merged.final AbstractComparedEmfObjects<?>The triple of topEObjects 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.booleanTells 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 Details
-
comparisonContext
The comparison context. -
mergeSession
The merge session. -
topNode
The top node being merged. -
topParents
The triple of topEObjects 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 benullmergeSession- the merge session, cannot benulltopNode- the top node being merged, cannot benulltopParents- the triple of top EObjects, can benullfor 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:
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
-