Package org.eclipse.emf.compare.util
Class CompareSwitch<T>
java.lang.Object
org.eclipse.emf.compare.util.CompareSwitch<T>
- Direct Known Subclasses:
ConflictSearchFactory
public class CompareSwitch<T>
extends java.lang.Object
The Switch for the model's inheritance hierarchy.
It supports the call
doSwitch(object)
to invoke the caseXXX method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
- See Also:
ComparePackage- Generated:
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringcopyrightprotected static ComparePackagemodelPackageThe cached model package -
Constructor Summary
Constructors Constructor Description CompareSwitch()Creates an instance of the switch. -
Method Summary
Modifier and Type Method Description TcaseAttributeChange(AttributeChange object)Returns the result of interpreting the object as an instance of 'Attribute Change'.TcaseComparison(Comparison object)Returns the result of interpreting the object as an instance of 'Comparison'.TcaseConflict(Conflict object)Returns the result of interpreting the object as an instance of 'Conflict'.TcaseDiff(Diff object)Returns the result of interpreting the object as an instance of 'Diff'.TcaseEquivalence(Equivalence object)Returns the result of interpreting the object as an instance of 'Equivalence'.TcaseFeatureMapChange(FeatureMapChange object)Returns the result of interpreting the object as an instance of 'Feature Map Change'.TcaseMatch(Match object)Returns the result of interpreting the object as an instance of 'Match'.TcaseMatchResource(MatchResource object)Returns the result of interpreting the object as an instance of 'Match Resource'.TcaseReferenceChange(ReferenceChange object)Returns the result of interpreting the object as an instance of 'Reference Change'.TcaseResourceAttachmentChange(ResourceAttachmentChange object)Returns the result of interpreting the object as an instance of 'Resource Attachment Change'.TcaseResourceLocationChange(ResourceLocationChange object)Returns the result of interpreting the object as an instance of 'Resource Location Change'.TdefaultCase(EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected TdoSwitch(EClass theEClass, EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.TdoSwitch(EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.
-
Field Details
-
copyright
public static final java.lang.String copyright- See Also:
- Constant Field Values
- Generated:
-
modelPackage
The cached model package- Generated:
-
-
Constructor Details
-
CompareSwitch
public CompareSwitch()Creates an instance of the switch.- Generated:
-
-
Method Details
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Returns:
- the first non-null result returned by a
caseXXXcall. - Generated:
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Returns:
- the first non-null result returned by a
caseXXXcall. - Generated:
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Returns:
- the first non-null result returned by a
caseXXXcall. - Generated:
-
caseComparison
Returns the result of interpreting the object as an instance of 'Comparison'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Comparison'.
- See Also:
doSwitch(EObject)- Generated:
-
caseMatchResource
Returns the result of interpreting the object as an instance of 'Match Resource'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Match Resource'.
- See Also:
doSwitch(EObject)- Generated:
-
caseMatch
Returns the result of interpreting the object as an instance of 'Match'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Match'.
- See Also:
doSwitch(EObject)- Generated:
-
caseDiff
Returns the result of interpreting the object as an instance of 'Diff'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Diff'.
- See Also:
doSwitch(EObject)- Generated:
-
caseResourceAttachmentChange
Returns the result of interpreting the object as an instance of 'Resource Attachment Change'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Resource Attachment Change'.
- See Also:
doSwitch(EObject)- Generated:
-
caseResourceLocationChange
Returns the result of interpreting the object as an instance of 'Resource Location Change'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Resource Location Change'.
- Since:
- 3.2
- See Also:
doSwitch(EObject)- Generated:
-
caseReferenceChange
Returns the result of interpreting the object as an instance of 'Reference Change'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Reference Change'.
- See Also:
doSwitch(EObject)- Generated:
-
caseAttributeChange
Returns the result of interpreting the object as an instance of 'Attribute Change'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Attribute Change'.
- See Also:
doSwitch(EObject)- Generated:
-
caseFeatureMapChange
Returns the result of interpreting the object as an instance of 'Feature Map Change'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Feature Map Change'.
- Since:
- 3.2
- See Also:
doSwitch(EObject)- Generated:
-
caseConflict
Returns the result of interpreting the object as an instance of 'Conflict'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Conflict'.
- Since:
- 3.2
- See Also:
doSwitch(EObject)- Generated:
-
caseEquivalence
Returns the result of interpreting the object as an instance of 'Equivalence'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Equivalence'.
- See Also:
doSwitch(EObject)- Generated:
-
defaultCase
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
doSwitch(org.eclipse.emf.ecore.EObject)- Generated:
-