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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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- 
comparisonContextpublic final ComparisonContext comparisonContext The comparison context.
 - 
mergeSessionpublic final IMergeSession mergeSession The merge session.
 - 
topNodepublic final TopComparisonNode topNode The top node being merged.
 - 
topParentspublic final AbstractComparedEmfObjects<?> topParents The triple of topEObjects being merged related to the top node.
 - 
customMergeAvailablepublic final boolean customMergeAvailable The custom merge available flag.
 
- 
 - 
Constructor Detail- 
MergeContextpublic MergeContext(ComparisonContext comparisonContext, IMergeSession mergeSession, TopComparisonNode topNode, AbstractComparedEmfObjects<?> topParents) Creates context instance.- Parameters:
- comparisonContext- the comparison context, cannot be- null
- mergeSession- the merge session, cannot be- null
- topNode- the top node being merged, cannot be- null
- topParents- the triple of top EObjects, can be- nullfor non-model entities
 
 - 
MergeContextpublic MergeContext(MergeContext mergeContext, boolean customMergeAvailable) Creates context instance based on given context.- Parameters:
- mergeContext- the base context, cannot be- null.
- customMergeAvailable- the custom merge available flag.
 
 
- 
 - 
Method Detail- 
getMergeBmTransactionpublic IBmTransaction getMergeBmTransaction() Gets the merge BM transaction.- Returns:
- The merge transaction, cannot be null.
 
 - 
isAddedFullyFromOtherpublic 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
 
 - 
setAddedFullyFromOtherpublic 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
 
 
- 
 
-