de.uka.ipd.sdq.completions.util
Class CompletionsSwitch<T>

java.lang.Object
  extended by de.uka.ipd.sdq.completions.util.CompletionsSwitch<T>

public class CompletionsSwitch<T>
extends 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:
CompletionsPackage

Field Summary
protected static CompletionsPackage modelPackage
          The cached model package
 
Constructor Summary
CompletionsSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractAction(AbstractAction object)
          Returns the result of interpreting the object as an instance of 'Abstract Action'.
 T caseCompletion(Completion object)
          Returns the result of interpreting the object as an instance of 'Completion'.
 T caseCompletionRepository(CompletionRepository object)
          Returns the result of interpreting the object as an instance of 'Completion Repository'.
 T caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object)
          Returns the result of interpreting the object as an instance of 'Composed Providing Requiring Entity'.
 T caseComposedStructure(ComposedStructure object)
          Returns the result of interpreting the object as an instance of 'Composed Structure'.
 T caseDelegatingExternalCallAction(DelegatingExternalCallAction object)
          Returns the result of interpreting the object as an instance of 'Delegating External Call Action'.
 T caseEntity(Entity object)
          Returns the result of interpreting the object as an instance of 'Entity'.
 T caseExternalCallAction(ExternalCallAction object)
          Returns the result of interpreting the object as an instance of 'External Call Action'.
 T caseIdentifier(Identifier object)
          Returns the result of interpreting the object as an instance of 'Identifier'.
 T caseImplementationComponentType(ImplementationComponentType object)
          Returns the result of interpreting the object as an instance of 'Implementation Component Type'.
 T caseInterfaceProvidingEntity(InterfaceProvidingEntity object)
          Returns the result of interpreting the object as an instance of 'Interface Providing Entity'.
 T caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object)
          Returns the result of interpreting the object as an instance of 'Interface Providing Requiring Entity'.
 T caseInterfaceRequiringEntity(InterfaceRequiringEntity object)
          Returns the result of interpreting the object as an instance of 'Interface Requiring Entity'.
 T caseNamedElement(NamedElement object)
          Returns the result of interpreting the object as an instance of 'Named Element'.
 T caseRepositoryComponent(RepositoryComponent object)
          Returns the result of interpreting the object as an instance of 'Component'.
 T caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object)
          Returns the result of interpreting the object as an instance of 'Resource Interface Requiring Entity'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
protected  T doSwitch(EClass theEClass, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 T doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
protected  T doSwitch(int classifierID, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static CompletionsPackage modelPackage
The cached model package

Constructor Detail

CompletionsSwitch

public CompletionsSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX 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.

doSwitch

protected T doSwitch(EClass theEClass,
                     EObject theEObject)
Calls caseXXX 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.

doSwitch

protected T doSwitch(int classifierID,
                     EObject theEObject)
Calls caseXXX 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.

caseCompletion

public T caseCompletion(Completion object)
Returns the result of interpreting the object as an instance of 'Completion'. 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 'Completion'.
See Also:
doSwitch(EObject)

caseCompletionRepository

public T caseCompletionRepository(CompletionRepository object)
Returns the result of interpreting the object as an instance of 'Completion Repository'. 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 'Completion Repository'.
See Also:
doSwitch(EObject)

caseDelegatingExternalCallAction

public T caseDelegatingExternalCallAction(DelegatingExternalCallAction object)
Returns the result of interpreting the object as an instance of 'Delegating External Call Action'. 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 'Delegating External Call Action'.
See Also:
doSwitch(EObject)

caseIdentifier

public T caseIdentifier(Identifier object)
Returns the result of interpreting the object as an instance of 'Identifier'. 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 'Identifier'.
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)

caseEntity

public T caseEntity(Entity object)
Returns the result of interpreting the object as an instance of 'Entity'. 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 'Entity'.
See Also:
doSwitch(EObject)

caseComposedStructure

public T caseComposedStructure(ComposedStructure object)
Returns the result of interpreting the object as an instance of 'Composed Structure'. 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 'Composed Structure'.
See Also:
doSwitch(EObject)

caseInterfaceProvidingEntity

public T caseInterfaceProvidingEntity(InterfaceProvidingEntity object)
Returns the result of interpreting the object as an instance of 'Interface Providing Entity'. 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 'Interface Providing Entity'.
See Also:
doSwitch(EObject)

caseInterfaceRequiringEntity

public T caseInterfaceRequiringEntity(InterfaceRequiringEntity object)
Returns the result of interpreting the object as an instance of 'Interface Requiring Entity'. 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 'Interface Requiring Entity'.
See Also:
doSwitch(EObject)

caseResourceInterfaceRequiringEntity

public T caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object)
Returns the result of interpreting the object as an instance of 'Resource Interface Requiring Entity'. 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 Interface Requiring Entity'.
See Also:
doSwitch(EObject)

caseInterfaceProvidingRequiringEntity

public T caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object)
Returns the result of interpreting the object as an instance of 'Interface Providing Requiring Entity'. 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 'Interface Providing Requiring Entity'.
See Also:
doSwitch(EObject)

caseComposedProvidingRequiringEntity

public T caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object)
Returns the result of interpreting the object as an instance of 'Composed Providing Requiring Entity'. 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 'Composed Providing Requiring Entity'.
See Also:
doSwitch(EObject)

caseRepositoryComponent

public T caseRepositoryComponent(RepositoryComponent object)
Returns the result of interpreting the object as an instance of 'Component'. 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 'Component'.
See Also:
doSwitch(EObject)

caseImplementationComponentType

public T caseImplementationComponentType(ImplementationComponentType object)
Returns the result of interpreting the object as an instance of 'Implementation Component Type'. 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 'Implementation Component Type'.
See Also:
doSwitch(EObject)

caseAbstractAction

public T caseAbstractAction(AbstractAction object)
Returns the result of interpreting the object as an instance of 'Abstract Action'. 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 'Abstract Action'.
See Also:
doSwitch(EObject)

caseExternalCallAction

public T caseExternalCallAction(ExternalCallAction object)
Returns the result of interpreting the object as an instance of 'External Call Action'. 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 'External Call Action'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(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)