|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.compare.diff.engine.check.AbstractCheck
public abstract class AbstractCheck
This provides a base implementation for the different checks that clients can need to call in specific differencing engines implementations.
| Field Summary | |
|---|---|
protected static int |
ANCESTOR_OBJECT
Allows retrieval of the ancestor matched object. |
protected static int |
LEFT_OBJECT
Allows retrieval of the left matched object. |
protected static int |
RIGHT_OBJECT
Allows retrieval of the right matched object. |
| Constructor Summary | |
|---|---|
AbstractCheck(org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer referencer)
Instantiates the checker given the current crossreferencing members of the diff engine. |
|
| Method Summary | |
|---|---|
protected java.util.List<java.lang.Object> |
convertFeatureMapList(java.util.List<?> input)
This will return a list containing only EObjects. |
protected org.eclipse.emf.ecore.EObject |
getMatchedEObject(org.eclipse.emf.ecore.EObject from)
Return the left or right matched EObject from the one given. |
protected org.eclipse.emf.ecore.EObject |
getMatchedEObject(org.eclipse.emf.ecore.EObject from,
int side)
Return the specified matched EObject from the one given. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int ANCESTOR_OBJECT
protected static final int LEFT_OBJECT
protected static final int RIGHT_OBJECT
| Constructor Detail |
|---|
public AbstractCheck(org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer referencer)
referencer - This cross referencer has been initialized with the whole MatchResourceSet and can be used
to retrieve matched EObjects towards other resources.| Method Detail |
|---|
protected final java.util.List<java.lang.Object> convertFeatureMapList(java.util.List<?> input)
input - List that is to be converted.
protected final org.eclipse.emf.ecore.EObject getMatchedEObject(org.eclipse.emf.ecore.EObject from)
EObject is the right one, or the right matched element if the
given EObject is either the left or the origin one.
from - The original EObject.
EObject.
protected final org.eclipse.emf.ecore.EObject getMatchedEObject(org.eclipse.emf.ecore.EObject from,
int side)
throws java.lang.IllegalArgumentException
EObject from the one given.
from - The original EObject.side - side of the object we seek. Must be one of
.
java.lang.IllegalArgumentException - Thrown if side is invalid.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||