ujf.verimag.bip.Core.Interactions.util
Class InteractionsSwitch<T>

java.lang.Object
  extended by ujf.verimag.bip.Core.Interactions.util.InteractionsSwitch<T>

public class InteractionsSwitch<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:
InteractionsPackage

Field Summary
protected static InteractionsPackage modelPackage
          The cached model package
 
Constructor Summary
InteractionsSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseACExpression(ACExpression object)
          Returns the result of interpreting the object as an instance of 'AC Expression'.
 T caseActualPortParameter(ActualPortParameter object)
          Returns the result of interpreting the object as an instance of 'Actual Port Parameter'.
 T caseAIExpression(AIExpression object)
          Returns the result of interpreting the object as an instance of 'AI Expression'.
 T caseBinding(Binding object)
          Returns the result of interpreting the object as an instance of 'Binding'.
 T caseBipType(BipType object)
          Returns the result of interpreting the object as an instance of 'Bip Type'.
 T caseComponent(Component object)
          Returns the result of interpreting the object as an instance of 'Component'.
 T caseComponentType(ComponentType object)
          Returns the result of interpreting the object as an instance of 'Component Type'.
 T caseCompoundType(CompoundType object)
          Returns the result of interpreting the object as an instance of 'Compound Type'.
 T caseConditionalActualPortParameter(ConditionalActualPortParameter object)
          Returns the result of interpreting the object as an instance of 'Conditional Actual Port Parameter'.
 T caseConnector(Connector object)
          Returns the result of interpreting the object as an instance of 'Connector'.
 T caseConnectorType(ConnectorType object)
          Returns the result of interpreting the object as an instance of 'Connector Type'.
 T caseExportBinding(ExportBinding object)
          Returns the result of interpreting the object as an instance of 'Export Binding'.
 T caseInnerPortReference(InnerPortReference object)
          Returns the result of interpreting the object as an instance of 'Inner Port Reference'.
 T caseInnerPortSpecification(InnerPortSpecification object)
          Returns the result of interpreting the object as an instance of 'Inner Port Specification'.
 T caseInteraction(Interaction object)
          Returns the result of interpreting the object as an instance of 'Interaction'.
 T caseInteractionSpecification(InteractionSpecification object)
          Returns the result of interpreting the object as an instance of 'Interaction Specification'.
 T caseMultiplicityElement(MultiplicityElement object)
          Returns the result of interpreting the object as an instance of 'Multiplicity Element'.
 T caseMultiplicityPath(MultiplicityPath object)
          Returns the result of interpreting the object as an instance of 'Multiplicity Path'.
 T caseNamedElement(NamedElement object)
          Returns the result of interpreting the object as an instance of 'Named Element'.
 T caseParameterizedElement(ParameterizedElement object)
          Returns the result of interpreting the object as an instance of 'Parameterized Element'.
 T casePart(Part object)
          Returns the result of interpreting the object as an instance of 'Part'.
 T casePartElementReference(PartElementReference object)
          Returns the result of interpreting the object as an instance of 'Part Element Reference'.
 T casePartType(PartType object)
          Returns the result of interpreting the object as an instance of 'Part Type'.
 T casePortExpression(PortExpression object)
          Returns the result of interpreting the object as an instance of 'Port Expression'.
 T casePortParameter(PortParameter object)
          Returns the result of interpreting the object as an instance of 'Port Parameter'.
 T casePortParameterReference(PortParameterReference object)
          Returns the result of interpreting the object as an instance of 'Port Parameter Reference'.
 T casePortReference(PortReference object)
          Returns the result of interpreting the object as an instance of 'Port Reference'.
 T casePriorityElement(PriorityElement object)
          Returns the result of interpreting the object as an instance of 'Priority Element'.
 T caseTraceableElement(TraceableElement object)
          Returns the result of interpreting the object as an instance of 'Traceable Element'.
 T caseVariableBinding(VariableBinding object)
          Returns the result of interpreting the object as an instance of 'Variable Binding'.
 T caseVariableExportBinding(VariableExportBinding object)
          Returns the result of interpreting the object as an instance of 'Variable Export Binding'.
 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 InteractionsPackage modelPackage
The cached model package

Constructor Detail

InteractionsSwitch

public InteractionsSwitch()
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.

caseComponent

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

casePart

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

caseMultiplicityElement

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

caseCompoundType

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

caseConnector

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

caseActualPortParameter

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

casePartElementReference

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

caseMultiplicityPath

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

caseInnerPortSpecification

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

caseInteractionSpecification

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

caseInteraction

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

casePortParameter

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

caseExportBinding

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

casePortParameterReference

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

caseInnerPortReference

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

caseConditionalActualPortParameter

public T caseConditionalActualPortParameter(ConditionalActualPortParameter object)
Returns the result of interpreting the object as an instance of 'Conditional Actual Port Parameter'. 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 'Conditional Actual Port Parameter'.
See Also:
doSwitch(EObject)

caseVariableExportBinding

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

caseConnectorType

public T caseConnectorType(ConnectorType object)
Returns the result of interpreting the object as an instance of 'Connector 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 'Connector Type'.
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)

caseParameterizedElement

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

caseTraceableElement

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

caseBipType

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

casePartType

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

caseComponentType

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

casePriorityElement

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

caseBinding

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

casePortExpression

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

caseACExpression

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

caseAIExpression

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

casePortReference

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

caseVariableBinding

public T caseVariableBinding(VariableBinding object)
Returns the result of interpreting the object as an instance of 'Variable Binding'. 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 'Variable Binding'.
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)