public interface ModelObjectMerger
| Modifier and Type | Method and Description |
|---|---|
ModelCompareResultType |
compare(Resource resourceNew,
Resource resourceOld)
Compares the two resources and returns the changes
|
ModelCompareResultType |
compare(Resource resourceNew,
Resource resourceOld,
java.util.List<EStructuralFeature> ignoreFeatures)
Compares the two resources and returns the changes
|
ModelCompareResultType |
compareAndMerge(Resource resourceNew,
Resource resourceOld)
Compares the two resources and merges them into the right, the old object
|
ModelCompareResultType |
compareAndMerge(Resource resourceNew,
Resource resourceOld,
java.util.List<EStructuralFeature> ignoreFeatures)
Compares the two resources and merges them into the right, the old object
|
Comparison |
compareRaw(Resource resourceNew,
Resource resourceOld,
java.util.List<EStructuralFeature> ignoreFeatures)
Compares the two resources and returns the changes
|
void |
fireVisitorChanges(Resource resource)
Fires finished visiting call to all visitors.
|
boolean |
merge(java.util.List<Diff> differences)
Merges differences
|
ModelCompareResultType compareAndMerge(Resource resourceNew, Resource resourceOld)
resourceNew - the resource with the new object versionresourceOld - the resource with the old, current object versionModelCompareResultType as result identifierModelCompareResultType compareAndMerge(Resource resourceNew, Resource resourceOld, java.util.List<EStructuralFeature> ignoreFeatures)
resourceNew - the resource with the new object versionresourceOld - the resource with the old, current object versionignoreFeatures - a list of EStructuralFeature to be ignored during compareModelCompareResultType as result identifierModelCompareResultType compare(Resource resourceNew, Resource resourceOld)
resourceNew - the resource with the new object versionresourceOld - the resource with the old, current object versionModelCompareResultType as result identifierModelCompareResultType compare(Resource resourceNew, Resource resourceOld, java.util.List<EStructuralFeature> ignoreFeatures)
resourceNew - the resource with the new object versionresourceOld - the resource with the old, current object versionignoreFeatures - a list of EStructuralFeature to be ignored during compareModelCompareResultType as result identifierComparison compareRaw(Resource resourceNew,
Resource resourceOld,
java.util.List<EStructuralFeature> ignoreFeatures)
resourceNew - the resource with the new object versionresourceOld - the resource with the old, current object versionignoreFeatures - a list of EStructuralFeature to be ignored during compare, can be nullboolean merge(java.util.List<Diff> differences)
differences - the compare differences to mergetrue, if merge was successful, otherwise falsevoid fireVisitorChanges(Resource resource)
resource - the changed, merged resourceData In Motion Consulting