Package com._1c.g5.v8.dt.compare.model
Interface MergeSettings
- All Superinterfaces:
org.eclipse.emf.ecore.EObject,IBmObject,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
MergeSettingsImpl
A representation of the model object 'Merge Settings'.
The following features are supported:
- See Also:
-
Field Summary
Fields inherited from interface com._1c.g5.v8.bm.core.IBmObject
BM_NULL_ID -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.util.EList<MergeRule>Returns the value of the 'Available Merge Rules' attribute list.Returns the value of the 'Custom Settings' containment reference.Returns the value of the 'Default Merge Rule' attribute.Returns the value of the 'Merge Rule' attribute.Returns the value of the 'Order Rule' containment reference.booleanReturns the value of the 'Can Be Merged' attribute.boolean* Tells whether the current merge rule equals to the default one.booleanReturns the value of the 'Have Children Excluded From Merge' attribute.booleanReturns the value of the 'Merge Rule Set By User' attribute.booleanReturns the value of the 'Must Be Merged' attribute.voidsetCanBeMerged(boolean value) Sets the value of the 'Can Be Merged' attribute.voidSets the value of the 'Custom Settings' containment reference.voidsetDefaultMergeRule(MergeRule value) Sets the value of the 'Default Merge Rule' attribute.voidsetHaveChildrenExcludedFromMerge(boolean value) Sets the value of the 'Have Children Excluded From Merge' attribute.voidsetMergeRule(MergeRule value) Sets the value of the 'Merge Rule' attribute.voidsetMergeRuleSetByUser(boolean value) Sets the value of the 'Merge Rule Set By User' attribute.voidsetMustBeMerged(boolean value) Sets the value of the 'Must Be Merged' attribute.voidsetOrderRule(OrderRule value) Sets the value of the 'Order Rule' containment reference.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com._1c.g5.v8.bm.core.IBmObject
bmGetEngine, bmGetFqn, bmGetId, bmGetNamespace, bmGetPlatformTransaction, bmGetProperties, bmGetProperty, bmGetReferences, bmGetResourceId, bmGetTopObject, bmGetTransaction, bmGetUri, bmGetUriAsString, bmIsTop, bmIsTransient, bmMatchSingleReference, bmSetPropertyMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getMergeRule
MergeRule getMergeRule()Returns the value of the 'Merge Rule' attribute. The literals are from the enumerationMergeRule. * The rule to be used during a merge process. This rule could be changed by the user in case ifisCanBeMerged()is true. The values for overriding should be taken from thegetAvailableMergeRules()- Returns:
- the value of the 'Merge Rule' attribute.
- See Also:
-
setMergeRule
Sets the value of the 'Merge Rule' attribute.- Parameters:
value- the new value of the 'Merge Rule' attribute.- See Also:
-
getDefaultMergeRule
MergeRule getDefaultMergeRule()Returns the value of the 'Default Merge Rule' attribute. The literals are from the enumerationMergeRule. * The default merge rule calculated for the current node during the comparison process.- Returns:
- the value of the 'Default Merge Rule' attribute.
- See Also:
-
setDefaultMergeRule
Sets the value of the 'Default Merge Rule' attribute.- Parameters:
value- the new value of the 'Default Merge Rule' attribute.- See Also:
-
getAvailableMergeRules
org.eclipse.emf.common.util.EList<MergeRule> getAvailableMergeRules()Returns the value of the 'Available Merge Rules' attribute list. The list contents are of typeMergeRule. The literals are from the enumerationMergeRule. * The list of merge rules available for the node.- Returns:
- the value of the 'Available Merge Rules' attribute list.
- See Also:
-
isMustBeMerged
boolean isMustBeMerged()Returns the value of the 'Must Be Merged' attribute. * Tells whether the node will be merged during the merge process using the corresponding merge rule.
This setting could be changed by the user in case ifisCanBeMerged()is true.- Returns:
- the value of the 'Must Be Merged' attribute.
- See Also:
-
setMustBeMerged
void setMustBeMerged(boolean value) Sets the value of the 'Must Be Merged' attribute.- Parameters:
value- the new value of the 'Must Be Merged' attribute.- See Also:
-
isCanBeMerged
boolean isCanBeMerged()Returns the value of the 'Can Be Merged' attribute. * Tells whether default merge settings obtained during the comparison process can be changed by the user. In case if overriding is available, the user is able to change the merge flag viasetMustBeMerged(boolean)as well as to select the merge rule (setMergeRule(com._1c.g5.v8.dt.compare.model.MergeRule)) from the available list of rules obtaibable viagetAvailableMergeRules().- Returns:
- the value of the 'Can Be Merged' attribute.
- See Also:
-
setCanBeMerged
void setCanBeMerged(boolean value) Sets the value of the 'Can Be Merged' attribute.- Parameters:
value- the new value of the 'Can Be Merged' attribute.- See Also:
-
isHaveChildrenExcludedFromMerge
boolean isHaveChildrenExcludedFromMerge()Returns the value of the 'Have Children Excluded From Merge' attribute. * Tells whether the node contains children excluded from merge. More technically, this flag is true when the node contains canBeMerged-children that are not mustBeMerged.- Returns:
- the value of the 'Have Children Excluded From Merge' attribute.
- See Also:
-
setHaveChildrenExcludedFromMerge
void setHaveChildrenExcludedFromMerge(boolean value) Sets the value of the 'Have Children Excluded From Merge' attribute.- Parameters:
value- the new value of the 'Have Children Excluded From Merge' attribute.- See Also:
-
isMergeRuleSetByUser
boolean isMergeRuleSetByUser()Returns the value of the 'Merge Rule Set By User' attribute. * Tells whether the merge rule set by the user and therefore shouldn't be changed by merge rule's building algorithms.- Returns:
- the value of the 'Merge Rule Set By User' attribute.
- See Also:
-
setMergeRuleSetByUser
void setMergeRuleSetByUser(boolean value) Sets the value of the 'Merge Rule Set By User' attribute.- Parameters:
value- the new value of the 'Merge Rule Set By User' attribute.- See Also:
-
getOrderRule
OrderRule getOrderRule()Returns the value of the 'Order Rule' containment reference. * The rule to be used for ordering of child elements on merge. Not null only for comparison nodes that support ordering of their children.- Returns:
- the value of the 'Order Rule' containment reference.
- See Also:
-
setOrderRule
Sets the value of the 'Order Rule' containment reference.- Parameters:
value- the new value of the 'Order Rule' containment reference.- See Also:
-
getCustomSettings
CustomMergeSettings getCustomSettings()Returns the value of the 'Custom Settings' containment reference. * Additional custom settings that extend standard merge settings for specific node types.- Returns:
- the value of the 'Custom Settings' containment reference.
- See Also:
-
setCustomSettings
Sets the value of the 'Custom Settings' containment reference.- Parameters:
value- the new value of the 'Custom Settings' containment reference.- See Also:
-
isDefaultMergeRule
boolean isDefaultMergeRule()* Tells whether the current merge rule equals to the default one.
-