public interface ModelObjectMerger
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPARISON_REFERENCE |
static java.lang.String |
CONFIGURABLE_FACTORY_ID |
static java.lang.String |
FACTORY_ID |
static java.lang.String |
MERGER_NAME |
static java.lang.String |
NAME |
static java.lang.String |
VISITOR_REFERENCE |
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
|
static final java.lang.String FACTORY_ID
static final java.lang.String CONFIGURABLE_FACTORY_ID
static final java.lang.String VISITOR_REFERENCE
static final java.lang.String COMPARISON_REFERENCE
static final java.lang.String NAME
static final java.lang.String MERGER_NAME
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 null
boolean merge(java.util.List<Diff> differences)
differences
- the compare differences to mergetrue
, if merge was successful, otherwise false
void fireVisitorChanges(Resource resource)
resource
- the changed, merged resourceData In Motion Consulting