Modifier and Type | Interface and Description |
---|---|
interface |
AttributeChange
A representation of the model object 'Attribute Change'
|
interface |
FeatureMapChange
A representation of the model object 'Feature Map Change'
|
interface |
ReferenceChange
A representation of the model object 'Reference Change'
|
interface |
ResourceAttachmentChange
A representation of the model object 'Resource Attachment Change'
|
Modifier and Type | Method and Description |
---|---|
Diff |
CompareFactory.createDiff()
Returns a new object of class 'Diff'
|
Diff |
Diff.getPrimeRefining()
Returns the value of the 'Prime Refining' reference.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Diff> |
Match.getAllDifferences()
Finds and returns all differences contained in this Match and its children, recursively
|
EList<Diff> |
Comparison.getDifferences()
Returns all differences
contained by this Comparison and its children.
|
EList<Diff> |
Equivalence.getDifferences()
Returns the value of the 'Differences' reference list.
|
EList<Diff> |
Match.getDifferences()
Returns the value of the 'Differences' containment reference list.
|
EList<Diff> |
Conflict.getDifferences()
Returns the value of the 'Differences' reference list.
|
EList<Diff> |
Comparison.getDifferences(EObject element)
Returns all differences that
reference the given EObject (for instance, all ReferenceChanges that reference the given EObject
through the "value" EReference).
|
EList<Diff> |
Diff.getImpliedBy()
Returns the value of the 'Implied By' reference list.
|
EList<Diff> |
Diff.getImplies()
Returns the value of the 'Implies' reference list.
|
EList<Diff> |
Conflict.getLeftDifferences()
This can be used to retrieve the list of differences that were made in the left element
|
EList<Diff> |
Diff.getRefinedBy()
Returns the value of the 'Refined By' reference list.
|
EList<Diff> |
Diff.getRefines()
Returns the value of the 'Refines' reference list.
|
EList<Diff> |
Diff.getRequiredBy()
Returns the value of the 'Required By' reference list.
|
EList<Diff> |
Diff.getRequires()
Returns the value of the 'Requires' reference list.
|
EList<Diff> |
Conflict.getRightDifferences()
This can be used to retrieve the list of differences that were made in the right element
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultConflictDetector.checkConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called once for each difference in the comparison model.
|
protected void |
DefaultConflictDetector.checkFeatureAddConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "ADD" and which is not a containment reference change. |
protected void |
DefaultConflictDetector.checkFeatureChangeConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "CHANGE". |
protected void |
DefaultConflictDetector.checkFeatureDeleteConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "DELETE" and which is not a containment reference change. |
protected void |
DefaultConflictDetector.checkFeatureMoveConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "CHANGE" or "MOVE". |
protected void |
DefaultConflictDetector.conflictOn(Comparison comparison,
Diff diff1,
Diff diff2,
ConflictKind kind)
This will be called whenever we detect a new conflict in order to create (or update) the actual
association.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultConflictDetector.checkConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called once for each difference in the comparison model.
|
protected void |
DefaultConflictDetector.checkFeatureAddConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "ADD" and which is not a containment reference change. |
protected void |
DefaultConflictDetector.checkFeatureChangeConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "CHANGE". |
protected void |
DefaultConflictDetector.checkFeatureDeleteConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "DELETE" and which is not a containment reference change. |
protected void |
DefaultConflictDetector.checkFeatureMoveConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "CHANGE" or "MOVE". |
protected void |
DefaultConflictDetector.checkResourceAttachmentConflict(Comparison comparison,
ResourceAttachmentChange diff,
Iterable<Diff> candidates)
This will be called once for each ResourceAttachmentChange in the comparison model.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultEquiEngine.checkForEquivalences(Comparison comparison,
Diff difference)
Checks the potential equivalence from the given
difference . |
Modifier and Type | Class and Description |
---|---|
class |
AttributeChangeImpl
An implementation of the model object 'Attribute Change'
|
class |
DiffImpl
An implementation of the model object 'Diff'.
|
class |
FeatureMapChangeImpl
An implementation of the model object 'Feature Map Change'
|
class |
ReferenceChangeImpl
An implementation of the model object 'Reference Change'
|
class |
ResourceAttachmentChangeImpl
An implementation of the model object 'Resource Attachment Change'
|
Modifier and Type | Field and Description |
---|---|
protected Diff |
DiffImpl.primeRefining
The cached value of the ' Prime Refining ' reference.
|
Modifier and Type | Field and Description |
---|---|
protected EList<Diff> |
EquivalenceImpl.differences
The cached value of the '
Differences ' reference list |
protected EList<Diff> |
ConflictImpl.differences
The cached value of the '
Differences ' reference list |
protected EList<Diff> |
MatchImpl.differences
The cached value of the '
Differences ' containment reference list |
protected EList<Diff> |
DiffImpl.impliedBy
The cached value of the ' Implied By ' reference list.
|
protected EList<Diff> |
DiffImpl.implies
The cached value of the ' Implies ' reference list.
|
protected EList<Diff> |
DiffImpl.refinedBy
The cached value of the ' Refined By ' reference list.
|
protected EList<Diff> |
DiffImpl.refines
The cached value of the ' Refines ' reference list.
|
protected EList<Diff> |
DiffImpl.requiredBy
The cached value of the ' Required By ' reference list.
|
protected EList<Diff> |
DiffImpl.requires
The cached value of the ' Requires ' reference list.
|
Modifier and Type | Method and Description |
---|---|
Diff |
DiffImpl.basicGetPrimeRefining() |
Diff |
CompareFactoryImpl.createDiff() |
Diff |
DiffImpl.getPrimeRefining() |
Modifier and Type | Method and Description |
---|---|
Iterable<Diff> |
MatchImpl.getAllDifferences() |
EList<Diff> |
ComparisonImpl.getDifferences() |
EList<Diff> |
EquivalenceImpl.getDifferences() |
EList<Diff> |
ConflictImpl.getDifferences() |
EList<Diff> |
MatchImpl.getDifferences() |
EList<Diff> |
ComparisonImpl.getDifferences(EObject element) |
EList<Diff> |
DiffImpl.getImpliedBy() |
EList<Diff> |
DiffImpl.getImplies() |
EList<Diff> |
ConflictImpl.getLeftDifferences() |
EList<Diff> |
DiffImpl.getRefinedBy() |
EList<Diff> |
DiffImpl.getRefines() |
EList<Diff> |
DiffImpl.getRequiredBy() |
EList<Diff> |
DiffImpl.getRequires() |
EList<Diff> |
ConflictImpl.getRightDifferences() |
Modifier and Type | Method and Description |
---|---|
MergeOperation |
MergeMode.getMergeAction(Diff difference,
boolean isLeftEditable,
boolean isRightEditable)
Returns the required action to be done to the given difference in this mode.
|
boolean |
MergeMode.isLeftToRight(Diff diff,
boolean isLeftEditable,
boolean isRightEditable)
To exactly know the way of merge (to compute consequences) we need the source of the diff.
|
Modifier and Type | Method and Description |
---|---|
Diff |
AbstractChangeFactory.create(Diff input)
|
Diff |
IChangeFactory.create(Diff input)
|
abstract Diff |
AbstractChangeFactory.createExtension()
It creates the graphical change extension.
|
Modifier and Type | Method and Description |
---|---|
protected List<Diff> |
AbstractChangeFactory.findCrossReferences(Comparison comparison,
EObject lookup,
com.google.common.base.Predicate<Diff> p)
Find the differences, on the given model object, which match with the predicate.
|
protected Set<Diff> |
AbstractChangeFactory.getAllContainedDifferences(Diff input)
Get all the add and delete changes on the objects contained in the one concerned by the given
difference.
|
Class<? extends Diff> |
AbstractChangeFactory.getExtensionKind()
Returns the kind of extension that this factory has to create.
|
Class<? extends Diff> |
IChangeFactory.getExtensionKind()
Returns the kind of extension that this factory has to create.
|
Modifier and Type | Method and Description |
---|---|
Diff |
AbstractChangeFactory.create(Diff input)
|
Diff |
IChangeFactory.create(Diff input)
|
void |
AbstractChangeFactory.fillRequiredDifferences(Comparison comparison,
Diff extension)
Sets the required link of the difference extension created by the related factory.
|
void |
IChangeFactory.fillRequiredDifferences(Comparison comparison,
Diff extension)
Sets the required link of the difference extension created by the related factory.
|
protected Set<Diff> |
AbstractChangeFactory.getAllContainedDifferences(Diff input)
Get all the add and delete changes on the objects contained in the one concerned by the given
difference.
|
Match |
AbstractChangeFactory.getParentMatch(Diff input)
Returns the match in which the difference will be added.
|
Match |
IChangeFactory.getParentMatch(Diff input)
Returns the match in which the difference will be added.
|
protected DifferenceKind |
AbstractChangeFactory.getRelatedExtensionKind(Diff input)
Get the
DifferenceKind of the matching diagram difference extension in relation to the
given difference. |
boolean |
AbstractChangeFactory.handles(Diff input)
Returns true if this factory handles the given kind of Diff, i.e., if it can create an
extension . |
boolean |
IChangeFactory.handles(Diff input)
Returns true if this factory handles the given kind of Diff, i.e., if it can create an
extension . |
abstract void |
AbstractChangeFactory.setRefiningChanges(Diff extension,
DifferenceKind extensionKind,
Diff refiningDiff)
Get the refining differences and set the given extension with them, from the given refining one.
|
Modifier and Type | Method and Description |
---|---|
protected List<Diff> |
AbstractChangeFactory.findCrossReferences(Comparison comparison,
EObject lookup,
com.google.common.base.Predicate<Diff> p)
Find the differences, on the given model object, which match with the predicate.
|
Modifier and Type | Class and Description |
---|---|
class |
AttributeChangeSpec
This specialization of the
AttributeChangeImpl class allows us to define the derived features and
operations implementations. |
class |
ReferenceChangeSpec
This specialization of the
ReferenceChangeImpl class allows us to define the derived features and
operations implementations. |
class |
ResourceAttachmentChangeSpec
This specialization of the
ResourceAttachmentChangeImpl class allows us to define the derived
features and operations implementations. |
Modifier and Type | Method and Description |
---|---|
Iterable<Diff> |
MatchSpec.getAllDifferences()
Finds and returns all differences contained in this Match and its children, recursively
|
EList<Diff> |
ComparisonSpec.getDifferences()
Returns all differences
contained by this Comparison and its children.
|
EList<Diff> |
ComparisonSpec.getDifferences(EObject element)
Returns all differences that
reference the given EObject (for instance, all ReferenceChanges that reference the given EObject
through the "value" EReference).
|
EList<Diff> |
ConflictSpec.getLeftDifferences()
This can be used to retrieve the list of differences that were made in the left element
|
EList<Diff> |
ConflictSpec.getRightDifferences()
This can be used to retrieve the list of differences that were made in the right element
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Function<Diff,Iterable<Diff>> |
ComparisonUtil.getSubDiffs(boolean leftToRight)
When merging a
Diff , returns the sub diffs of this given diff, and all associated diffs (see
DiffUtil#getAssociatedDiffs(Iterable, boolean, Diff) ) of these sub diffs. |
static com.google.common.base.Function<Diff,Iterable<Diff>> |
ComparisonUtil.getSubDiffs(boolean leftToRight)
When merging a
Diff , returns the sub diffs of this given diff, and all associated diffs (see
DiffUtil#getAssociatedDiffs(Iterable, boolean, Diff) ) of these sub diffs. |
Modifier and Type | Method and Description |
---|---|
static int |
DiffUtil.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This is the main entry point for
DiffUtil.findInsertionIndex(Comparison, Iterable, List, List, Object) . |
static boolean |
ComparisonUtil.isAddOrSetDiff(Diff difference)
Checks if the given difference is either an addition or a "set" from the default value to a new
reference.
|
static boolean |
ComparisonUtil.isDeleteOrUnsetDiff(Diff difference)
Checks if the given difference is either a deletion or a "unset" to the default value.
|
static boolean |
ComparisonUtil.isFeatureMapContainment(Diff diff)
Checks whether the given diff corresponds to a feature map containment change.
|
Modifier and Type | Method and Description |
---|---|
Set<Diff> |
AbstractMerger.getResultingMerges(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownImplications)
Retrieves the set of all diffs related to the given
diff when merging in the given
direction. |
Set<Diff> |
IMerger2.getResultingMerges(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownImplications)
Retrieves the set of all diffs related to the given
diff when merging in the given
direction. |
Set<Diff> |
AbstractMerger.getResultingRejections(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownRejections)
Retrieves the set of all diffs that will be rejected if the given
diff is merged, either
because of unresolveable conflicts or because of unreachable requirements. |
Set<Diff> |
IMerger2.getResultingRejections(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownRejections)
Retrieves the set of all diffs that will be rejected if the given
diff is merged, either
because of unresolveable conflicts or because of unreachable requirements. |
Modifier and Type | Method and Description |
---|---|
protected void |
ResourceAttachmentChangeMerger.accept(Diff diff,
boolean rightToLeft)
Accept the given difference.
|
protected void |
FeatureMapChangeMerger.accept(Diff diff,
boolean rightToLeft)
Accept the given difference.
|
protected void |
AttributeChangeMerger.accept(Diff diff,
boolean rightToLeft)
Accept the given difference.
|
protected void |
ReferenceChangeMerger.accept(Diff diff,
boolean rightToLeft)
Merge the given difference accepting it.
|
protected void |
AbstractMerger.accept(Diff diff,
boolean rightToLeft)
Accept the given difference.
|
void |
IMerger.copyLeftToRight(Diff target,
Monitor monitor)
Executes the copy from left to right.
|
void |
PseudoConflictMerger.copyLeftToRight(Diff target,
Monitor monitor)
Executes the copy from left to right.
|
void |
AbstractMerger.copyLeftToRight(Diff target,
Monitor monitor)
Executes the copy from left to right.
|
void |
ConflictMerger.copyLeftToRight(Diff target,
Monitor monitor)
Executes the copy from left to right.
|
void |
IMerger.copyRightToLeft(Diff target,
Monitor monitor)
Executes the copy from right to left.
|
void |
PseudoConflictMerger.copyRightToLeft(Diff target,
Monitor monitor)
Executes the copy from right to left.
|
void |
AbstractMerger.copyRightToLeft(Diff target,
Monitor monitor)
Executes the copy from right to left.
|
void |
ConflictMerger.copyRightToLeft(Diff target,
Monitor monitor)
Executes the copy from right to left.
|
protected int |
FeatureMapChangeMerger.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This will be used by the distinct merge actions in order to find the index at which a value should be
inserted in its target list.
|
protected int |
AttributeChangeMerger.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This will be used by the distinct merge actions in order to find the index at which a value should be
inserted in its target list.
|
protected int |
ReferenceChangeMerger.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This will be used by the distinct merge actions in order to find the index at which a value should be
inserted in its target list.
|
IMerger |
IMerger.Registry.getHighestRankingMerger(Diff target)
Returns the merger, for the given target, owning the highest ranking.
|
IMerger |
IMerger.RegistryImpl.getHighestRankingMerger(Diff target)
Returns the merger, for the given target, owning the highest ranking.
|
Collection<IMerger> |
IMerger.Registry.getMergers(Diff target)
Returns the list of the candidate mergers for the given difference.
|
Collection<IMerger> |
IMerger.RegistryImpl.getMergers(Diff target)
Returns the list of the candidate mergers for the given difference.
|
Set<Diff> |
AbstractMerger.getResultingMerges(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownImplications)
Retrieves the set of all diffs related to the given
diff when merging in the given
direction. |
Set<Diff> |
IMerger2.getResultingMerges(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownImplications)
Retrieves the set of all diffs related to the given
diff when merging in the given
direction. |
Set<Diff> |
AbstractMerger.getResultingRejections(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownRejections)
Retrieves the set of all diffs that will be rejected if the given
diff is merged, either
because of unresolveable conflicts or because of unreachable requirements. |
Set<Diff> |
IMerger2.getResultingRejections(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownRejections)
Retrieves the set of all diffs that will be rejected if the given
diff is merged, either
because of unresolveable conflicts or because of unreachable requirements. |
protected boolean |
AbstractMerger.handleEquivalences(Diff diff,
boolean rightToLeft,
Monitor monitor)
Handles the equivalences of this difference.
|
protected void |
AbstractMerger.handleImpliedBy(Diff diff,
boolean rightToLeft,
Monitor monitor)
Mark as
merged all the implying differences recursively from the given
one. |
protected void |
AbstractMerger.handleImplies(Diff diff,
boolean rightToLeft,
Monitor monitor)
Mark as
merged all the implied differences recursively from the given
one. |
boolean |
ResourceAttachmentChangeMerger.isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
boolean |
IMerger.isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
boolean |
FeatureMapChangeMerger.isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
boolean |
AttributeChangeMerger.isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
boolean |
PseudoConflictMerger.isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
boolean |
ReferenceChangeMerger.isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
boolean |
ConflictMerger.isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
protected void |
AbstractMerger.mergeDiff(Diff diff,
boolean rightToLeft,
Monitor monitor)
This can be used by mergers to merge another (required, equivalent...) difference using the right
merger for that diff.
|
protected void |
AbstractMerger.mergeRequiredBy(Diff diff,
boolean rightToLeft,
Monitor monitor)
This will merge all
differences that require diff in the given
direction. |
protected void |
AbstractMerger.mergeRequires(Diff diff,
boolean rightToLeft,
Monitor monitor)
This will merge all
differences required by diff in the given
direction. |
protected void |
ResourceAttachmentChangeMerger.reject(Diff diff,
boolean rightToLeft)
Reject the given difference.
|
protected void |
FeatureMapChangeMerger.reject(Diff diff,
boolean rightToLeft)
Reject the given difference.
|
protected void |
AttributeChangeMerger.reject(Diff diff,
boolean rightToLeft)
Reject the given difference.
|
protected void |
ReferenceChangeMerger.reject(Diff diff,
boolean rightToLeft)
Merge the given difference rejecting it.
|
protected void |
AbstractMerger.reject(Diff diff,
boolean rightToLeft)
Reject the given difference.
|
Modifier and Type | Method and Description |
---|---|
void |
BatchMerger.copyAllLeftToRight(Iterable<? extends Diff> differences,
Monitor monitor)
This will be called to copy all of the differences from the given list from the left to the right side.
|
void |
IBatchMerger.copyAllLeftToRight(Iterable<? extends Diff> differences,
Monitor monitor)
This will be called to copy all of the differences from the given list from the left to the right side.
|
void |
BatchMerger.copyAllRightToLeft(Iterable<? extends Diff> differences,
Monitor monitor)
This will be called to copy all of the differences from the given list from the right to the left side.
|
void |
IBatchMerger.copyAllRightToLeft(Iterable<? extends Diff> differences,
Monitor monitor)
This will be called to copy all of the differences from the given list from the right to the left side.
|
Set<Diff> |
AbstractMerger.getResultingMerges(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownImplications)
Retrieves the set of all diffs related to the given
diff when merging in the given
direction. |
Set<Diff> |
IMerger2.getResultingMerges(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownImplications)
Retrieves the set of all diffs related to the given
diff when merging in the given
direction. |
Set<Diff> |
AbstractMerger.getResultingRejections(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownRejections)
Retrieves the set of all diffs that will be rejected if the given
diff is merged, either
because of unresolveable conflicts or because of unreachable requirements. |
Set<Diff> |
IMerger2.getResultingRejections(Diff diff,
boolean mergeLeftToRight,
Set<Diff> knownRejections)
Retrieves the set of all diffs that will be rejected if the given
diff is merged, either
because of unresolveable conflicts or because of unreachable requirements. |
Constructor and Description |
---|
BatchMerger(IMerger.Registry registry,
com.google.common.base.Predicate<? super Diff> filter)
Constructs our batch merger provided the registry from which to retrieve the delegate mergers, and a
filter if you only wish to merge specific differences.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultReqEngine.checkForRequiredDifferences(Comparison comparison,
Diff difference)
Checks the potential required differences from the given
difference . |
Modifier and Type | Method and Description |
---|---|
T |
CompareSwitch.caseDiff(Diff object)
Returns the result of interpreting the object as an instance of 'Diff'
|
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.CONTAINMENT_REFERENCE_CHANGE
This can be used to check whether a given diff is a containment reference change.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.WITHOUT_CONFLICT
This can be used to test whether a given Diff has no conflict object associated.
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.added(String qualifiedName)
This predicate can be used to check whether a given Diff represents the addition of an EObject matching
the given qualified name.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.addedToAttribute(String qualifiedName,
String attributeName,
Object addedValue)
This predicate can be used to check whether a given Diff represents the addition of a value in a
multi-valued attribute going by
attributeName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.addedToReference(String qualifiedName,
String referenceName,
String addedQualifiedName)
This predicate can be used to check whether a given Diff represents the addition of a value in a
multi-valued reference going by
referenceName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.addedToReference(String qualifiedName,
String referenceName,
String addedQualifiedName,
EStructuralFeature featureDelegateForAddedName)
This predicate can be used to check whether a given Diff represents the addition of a value in a
multi-valued reference going by
referenceName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.attributeValueMatch(String attributeName,
Object expectedValue,
boolean multiValued)
This predicate can be used to check whether a given Diff describes an AttributeChange with the given
attributeName and which changed value corresponds to the given expectedValue . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.changedAttribute(String qualifiedName,
String attributeName,
Object fromValue,
Object toValue)
This predicate can be used to check whether a given Diff represents the modification of a single-valued
attribute going by the given
attributeName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.changedReference(String qualifiedName,
String referenceName,
String fromQualifiedName,
String toQualifiedName)
This predicate can be used to check whether a given Diff represents the modification of a single-valued
reference going by the given
referenceName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.containmentReferenceChange()
Deprecated.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.fromSide(DifferenceSource source)
This can be used to check that a given Diff originates from the given
source side. |
static Iterable<Diff> |
DiffUtil.getAssociatedDiffs(Diff diffRoot,
Iterable<Diff> subDiffs,
boolean leftToRight)
Deprecated.
|
static com.google.common.base.Function<Diff,Iterable<Diff>> |
DiffUtil.getSubDiffs(boolean leftToRight)
Deprecated.
When merging a
Diff , returns the sub diffs of this given diff, and all associated diffs (see
DiffUtil#getAssociatedDiffs(Iterable, boolean, Diff) ) of these sub diffs. |
static com.google.common.base.Function<Diff,Iterable<Diff>> |
DiffUtil.getSubDiffs(boolean leftToRight)
Deprecated.
When merging a
Diff , returns the sub diffs of this given diff, and all associated diffs (see
DiffUtil#getAssociatedDiffs(Iterable, boolean, Diff) ) of these sub diffs. |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.hasConflict(ConflictKind... kinds)
This can be used to check whether a given Diff has a conflict of one of the given type.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.hasState(DifferenceState... states)
This can be used to check whether a given Diff is in (one of) the given state(s).
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.moved(String qualifiedName,
String referenceName)
This predicate can be used to check whether a given Diff represents the move of an EObject matching the
given qualified name.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.movedInAttribute(String qualifiedName,
String attributeName,
Object removedValue)
This predicate can be used to check whether a given Diff represents the moving of a value within a
multi-valued attribute going by
attributeName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.movedInReference(String qualifiedName,
String referenceName,
String removedQualifiedName)
This predicate can be used to check whether a given Diff represents the moving of a value within a
multi-valued reference going by
referenceName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.ofKind(DifferenceKind kind)
This predicate can be used to check whether a particular diff is of the given
kind . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.onEObject(EObject eObject)
This can be used in order to check that a Diff has been detected on the given EObject.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.onEObject(String qualifiedName)
This can be used in order to check whether a Diff has been detected on an EObject matching the given
qualified name.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.onEObject(String qualifiedName,
EStructuralFeature featureDelegate)
This can be used in order to check whether a Diff has been detected on an EObject matching the given
qualified name or the qualified name under the given feature.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.onFeature(String featureName)
This can be used to check that a given Diff correspond to either an
AttributeChange , a
FeatureMapChange or a ReferenceChange , and that the corresponding reference or
attribute matches the given featureName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.referenceValueMatch(String referenceName,
String qualifiedName,
boolean multiValued)
This predicate can be used to check whether a given Diff describes a ReferenceChange with the given
referenceName and which changed value corresponds to the given qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.referenceValueMatch(String referenceName,
String qualifiedName,
boolean multiValued,
EStructuralFeature featureDelegate)
This predicate can be used to check whether a given Diff describes a ReferenceChange with the given
referenceName and which changed value corresponds to the given qualifiedName or the
qualified name under the given featureDelegate . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.removed(String qualifiedName)
This predicate can be used to check whether a given Diff represents the removal of an EObject matching
the given qualified name.
|
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.removedFromAttribute(String qualifiedName,
String attributeName,
Object removedValue)
This predicate can be used to check whether a given Diff represents the deletion of a value from a
multi-valued attribute going by
attributeName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.removedFromReference(String qualifiedName,
String referenceName,
String removedQualifiedName)
This predicate can be used to check whether a given Diff represents the deletion of a value from a
multi-valued reference going by
referenceName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.removedFromReference(String qualifiedName,
String referenceName,
String removedQualifiedName,
EStructuralFeature featureDelegateForRemovedName)
This predicate can be used to check whether a given Diff represents the deletion of a value from a
multi-valued reference going by
referenceName on an EObject which name matches
qualifiedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.valueIs(Object expectedValue)
This predicate can be used in order to check that a particular Diff describes either a
ReferenceChange , AttributeChange or FeatureMapChange for the given
expectedValue . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.valueNameMatches(String expectedName)
This can be used to check whether a given Diff describes either a
ReferenceChange on an EObject
which name is expectedName . |
static com.google.common.base.Predicate<? super Diff> |
EMFComparePredicates.valueNameMatches(String expectedName,
EStructuralFeature featureDelegate)
This can be used to check whether a given Diff describes either a
ReferenceChange on an EObject
which name is expectedName or which the given feature provides the expectedName . |
Modifier and Type | Method and Description |
---|---|
static int |
DiffUtil.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
Deprecated.
This is the main entry point for
#findInsertionIndex(Comparison, EqualityHelper, Iterable, List, List, Object) . |
static Iterable<Diff> |
DiffUtil.getAssociatedDiffs(Diff diffRoot,
Iterable<Diff> subDiffs,
boolean leftToRight)
Deprecated.
|
static EObject |
MatchUtil.getContainer(Comparison comparison,
Diff difference)
Get the business model object containing the given
difference . |
static EObject |
MatchUtil.getOriginContainer(Comparison comparison,
Diff difference)
Get the business model object containing the given
difference in the origin side. |
static EStructuralFeature |
MatchUtil.getStructuralFeature(Diff input)
Get the structural feature of any difference.
|
static Object |
MatchUtil.getValue(Diff input)
Get the value of any difference.
|
Modifier and Type | Method and Description |
---|---|
static Iterable<Diff> |
DiffUtil.getAssociatedDiffs(Diff diffRoot,
Iterable<Diff> subDiffs,
boolean leftToRight)
Deprecated.
|
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.