Class HistorySwitch<T>
- java.lang.Object
-
- org.eclipse.emf.edapt.spi.history.util.HistorySwitch<T>
-
- Direct Known Subclasses:
EcoreReconstructorSwitchBase
public class HistorySwitch<T> extends Object
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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:
HistoryPackage
-
-
Constructor Summary
Constructors Constructor Description HistorySwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAdd(Add object)
Returns the result of interpreting the object as an instance of 'Add'.T
caseChange(Change object)
Returns the result of interpreting the object as an instance of 'Change'.T
caseCompositeChange(CompositeChange object)
Returns the result of interpreting the object as an instance of 'Composite Change'.T
caseContentChange(ContentChange object)
Returns the result of interpreting the object as an instance of 'Content Change'.T
caseCreate(Create object)
Returns the result of interpreting the object as an instance of 'Create'.T
caseDelete(Delete object)
Returns the result of interpreting the object as an instance of 'Delete'.T
caseHistory(History object)
Returns the result of interpreting the object as an instance of 'History'.T
caseInitializerChange(InitializerChange object)
Returns the result of interpreting the object as an instance of 'Initializer Change'.T
caseMigrateableChange(MigrateableChange object)
Returns the result of interpreting the object as an instance of 'Migrateable Change'.T
caseMigrationChange(MigrationChange object)
Returns the result of interpreting the object as an instance of 'Migration Change'.T
caseModelReference(ModelReference object)
Returns the result of interpreting the object as an instance of 'Model Reference'.T
caseMove(Move object)
Returns the result of interpreting the object as an instance of 'Move'.T
caseNamedElement(NamedElement object)
Returns the result of interpreting the object as an instance of 'Named Element'.T
caseNoChange(NoChange object)
Returns the result of interpreting the object as an instance of 'No Change'.T
caseNonDelete(NonDelete object)
Returns the result of interpreting the object as an instance of 'Non Delete'.T
caseOperationChange(OperationChange object)
Returns the result of interpreting the object as an instance of 'Operation Change'.T
caseOperationInstance(OperationInstance object)
Returns the result of interpreting the object as an instance of 'Operation Instance'.T
caseParameterInstance(ParameterInstance object)
Returns the result of interpreting the object as an instance of 'Parameter Instance'.T
casePrimitiveChange(PrimitiveChange object)
Returns the result of interpreting the object as an instance of 'Primitive Change'.T
caseRelease(Release object)
Returns the result of interpreting the object as an instance of 'Release'.T
caseRemove(Remove object)
Returns the result of interpreting the object as an instance of 'Remove'.T
caseSet(Set object)
Returns the result of interpreting the object as an instance of 'Set'.T
caseValueChange(ValueChange object)
Returns the result of interpreting the object as an instance of 'Value Change'.T
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.T
doSwitch(org.eclipse.emf.ecore.EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
-
-
Method Detail
-
doSwitch
public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
CallscaseXXX
for 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
caseXXX
call.
-
caseHistory
public T caseHistory(History object)
Returns the result of interpreting the object as an instance of 'History'. 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 'History'.
- See Also:
doSwitch(EObject)
-
caseRelease
public T caseRelease(Release object)
Returns the result of interpreting the object as an instance of 'Release'. 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 'Release'.
- See Also:
doSwitch(EObject)
-
caseChange
public T caseChange(Change object)
Returns the result of interpreting the object as an instance of '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 'Change'.
- See Also:
doSwitch(EObject)
-
casePrimitiveChange
public T casePrimitiveChange(PrimitiveChange object)
Returns the result of interpreting the object as an instance of 'Primitive 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 'Primitive Change'.
- See Also:
doSwitch(EObject)
-
caseNoChange
public T caseNoChange(NoChange object)
Returns the result of interpreting the object as an instance of 'No 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 'No Change'.
- See Also:
doSwitch(EObject)
-
caseContentChange
public T caseContentChange(ContentChange object)
Returns the result of interpreting the object as an instance of 'Content 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 'Content Change'.
- See Also:
doSwitch(EObject)
-
caseNonDelete
public T caseNonDelete(NonDelete object)
Returns the result of interpreting the object as an instance of 'Non Delete'. 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 'Non Delete'.
- See Also:
doSwitch(EObject)
-
caseCreate
public T caseCreate(Create object)
Returns the result of interpreting the object as an instance of 'Create'. 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 'Create'.
- See Also:
doSwitch(EObject)
-
caseMove
public T caseMove(Move object)
Returns the result of interpreting the object as an instance of 'Move'. 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 'Move'.
- See Also:
doSwitch(EObject)
-
caseDelete
public T caseDelete(Delete object)
Returns the result of interpreting the object as an instance of 'Delete'. 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 'Delete'.
- See Also:
doSwitch(EObject)
-
caseValueChange
public T caseValueChange(ValueChange object)
Returns the result of interpreting the object as an instance of 'Value 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 'Value Change'.
- See Also:
doSwitch(EObject)
-
caseSet
public T caseSet(Set object)
Returns the result of interpreting the object as an instance of 'Set'. 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 'Set'.
- See Also:
doSwitch(EObject)
-
caseAdd
public T caseAdd(Add object)
Returns the result of interpreting the object as an instance of 'Add'. 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 'Add'.
- See Also:
doSwitch(EObject)
-
caseRemove
public T caseRemove(Remove object)
Returns the result of interpreting the object as an instance of 'Remove'. 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 'Remove'.
- See Also:
doSwitch(EObject)
-
caseCompositeChange
public T caseCompositeChange(CompositeChange object)
Returns the result of interpreting the object as an instance of 'Composite 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 'Composite Change'.
- See Also:
doSwitch(EObject)
-
caseOperationChange
public T caseOperationChange(OperationChange object)
Returns the result of interpreting the object as an instance of 'Operation 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 'Operation Change'.
- See Also:
doSwitch(EObject)
-
caseOperationInstance
public T caseOperationInstance(OperationInstance object)
Returns the result of interpreting the object as an instance of 'Operation Instance'. 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 'Operation Instance'.
- See Also:
doSwitch(EObject)
-
caseParameterInstance
public T caseParameterInstance(ParameterInstance object)
Returns the result of interpreting the object as an instance of 'Parameter Instance'. 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 'Parameter Instance'.
- See Also:
doSwitch(EObject)
-
caseModelReference
public T caseModelReference(ModelReference object)
Returns the result of interpreting the object as an instance of 'Model Reference'. 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 'Model Reference'.
- See Also:
doSwitch(EObject)
-
caseNamedElement
public T caseNamedElement(NamedElement object)
Returns the result of interpreting the object as an instance of 'Named Element'. 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 'Named Element'.
- See Also:
doSwitch(EObject)
-
caseMigrateableChange
public T caseMigrateableChange(MigrateableChange object)
Returns the result of interpreting the object as an instance of 'Migrateable 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 'Migrateable Change'.
- See Also:
doSwitch(EObject)
-
caseMigrationChange
public T caseMigrationChange(MigrationChange object)
Returns the result of interpreting the object as an instance of 'Migration 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 'Migration Change'.
- See Also:
doSwitch(EObject)
-
caseInitializerChange
public T caseInitializerChange(InitializerChange object)
Returns the result of interpreting the object as an instance of 'Initializer 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 'Initializer Change'.
- See Also:
doSwitch(EObject)
-
defaultCase
public T defaultCase(org.eclipse.emf.ecore.EObject object)
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)
-
-