public class CompareModels extends Object implements Function<javax.jmi.reflect.RefPackage,ModelComparisonResult>
| Constructor and Description |
|---|
CompareModels(MatchingCriteria exactMatchCriteria,
MatchingCriteria exceptionMatchCriteria,
List<ConsideredEqual> bindings,
javax.jmi.reflect.RefPackage sourceModelExtent)
Use the same exact match and relaxed match criteria, this way treating as not identical the elements,
that are different according to the matching criteria.
|
| Modifier and Type | Method and Description |
|---|---|
ModelComparisonResult |
execute(javax.jmi.reflect.RefPackage targetModelExtent) |
public CompareModels(MatchingCriteria exactMatchCriteria, MatchingCriteria exceptionMatchCriteria, List<ConsideredEqual> bindings, javax.jmi.reflect.RefPackage sourceModelExtent)
exactMatchCriteria - not null criteria stating for each metamodel class what attributes and associations
to compare bound to an instance in the old object and to an instance in the new model, in order to treat both
instances as corresponding. Thus, elements that match according to this criteria are treated as equal / same,
whereas any other elements are treated as added or deleted.exceptionMatchCriteria - non null criteria which attributes and associations to skip in the identification
of elements differences.bindings - non null list defines explicitly listed objects as equals (even though they are not equal in the
sense of exactMatchCriteria). These are model elements that should be treated as a-priori equal.sourceModelExtent - not null extent holding the model, treated as "old"CompareModels(MatchingCriteria, MatchingCriteria, List, RefPackage)public ModelComparisonResult execute(javax.jmi.reflect.RefPackage targetModelExtent) throws IllegalArgumentException
execute in interface Function<javax.jmi.reflect.RefPackage,ModelComparisonResult>targetModelExtent - The extent where the new model is loadedIllegalArgumentExceptionCopyright © 2001–2018 MDA Tools. All rights reserved.