edu.cmu.sei.aadl.model.connection.util
Class ConnectionSwitch

java.lang.Object
  extended by edu.cmu.sei.aadl.model.connection.util.ConnectionSwitch

public class ConnectionSwitch
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:
ConnectionPackage

Field Summary
static java.lang.String copyright
           
static ConnectionSwitch INSTANCE
           
protected static ConnectionPackage modelPackage
          The cached model package
 
Constructor Summary
ConnectionSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseAObject(AObject object)
          Returns the result of interpretting the object as an instance of 'AObject'
 java.lang.Object caseBusAccessConnection(BusAccessConnection object)
          Returns the result of interpretting the object as an instance of 'Bus Access Connection'
 java.lang.Object caseBusAccessEnd(BusAccessEnd object)
          Returns the result of interpretting the object as an instance of 'Bus Access End'
 java.lang.Object caseConnection(Connection object)
          Returns the result of interpretting the object as an instance of 'Connection'
 java.lang.Object caseConnections(Connections object)
          Returns the result of interpretting the object as an instance of 'Connections'
 java.lang.Object caseDataAccessConnection(DataAccessConnection object)
          Returns the result of interpretting the object as an instance of 'Data Access Connection'
 java.lang.Object caseDataAccessEnd(DataAccessEnd object)
          Returns the result of interpretting the object as an instance of 'Data Access End'
 java.lang.Object caseDataConnection(DataConnection object)
          Returns the result of interpretting the object as an instance of 'Data Connection'
 java.lang.Object caseEventConnection(EventConnection object)
          Returns the result of interpretting the object as an instance of 'Event Connection'
 java.lang.Object caseEventDataConnection(EventDataConnection object)
          Returns the result of interpretting the object as an instance of 'Event Data Connection'
 java.lang.Object caseFeatureContext(FeatureContext object)
          Returns the result of interpretting the object as an instance of 'Feature Context'
 java.lang.Object caseModeMember(ModeMember object)
          Returns the result of interpretting the object as an instance of 'Mode Member'
 java.lang.Object caseNamedElement(NamedElement object)
          Returns the result of interpretting the object as an instance of 'Named Element'
 java.lang.Object caseParameterConnection(ParameterConnection object)
          Returns the result of interpretting the object as an instance of 'Parameter Connection'
 java.lang.Object caseParameterEnd(ParameterEnd object)
          Returns the result of interpretting the object as an instance of 'Parameter End'
 java.lang.Object casePortGroupConnection(PortGroupConnection object)
          Returns the result of interpretting the object as an instance of 'Port Group Connection'
 java.lang.Object casePropertyHolder(PropertyHolder object)
          Returns the result of interpretting the object as an instance of 'Property Holder'
 java.lang.Object caseReferenceElement(ReferenceElement object)
          Returns the result of interpretting the object as an instance of 'Reference Element'
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'
protected  java.lang.Object doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
 java.lang.Object doSwitch(org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
protected  java.lang.Object doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
 void setAadlProcessingSwitch(AadlProcessingSwitch cs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

INSTANCE

public static ConnectionSwitch INSTANCE

modelPackage

protected static ConnectionPackage modelPackage
The cached model package

Constructor Detail

ConnectionSwitch

public ConnectionSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object doSwitch(org.eclipse.emf.ecore.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 java.lang.Object doSwitch(org.eclipse.emf.ecore.EClass theEClass,
                                    org.eclipse.emf.ecore.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 java.lang.Object doSwitch(int classifierID,
                                    org.eclipse.emf.ecore.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.

caseConnections

public java.lang.Object caseConnections(Connections object)
Returns the result of interpretting the object as an instance of 'Connections'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Connections'.
See Also:
doSwitch(EObject)

caseDataConnection

public java.lang.Object caseDataConnection(DataConnection object)
Returns the result of interpretting the object as an instance of 'Data Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Data Connection'.
See Also:
doSwitch(EObject)

caseEventConnection

public java.lang.Object caseEventConnection(EventConnection object)
Returns the result of interpretting the object as an instance of 'Event Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Event Connection'.
See Also:
doSwitch(EObject)

caseEventDataConnection

public java.lang.Object caseEventDataConnection(EventDataConnection object)
Returns the result of interpretting the object as an instance of 'Event Data Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Event Data Connection'.
See Also:
doSwitch(EObject)

casePortGroupConnection

public java.lang.Object casePortGroupConnection(PortGroupConnection object)
Returns the result of interpretting the object as an instance of 'Port Group Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Port Group Connection'.
See Also:
doSwitch(EObject)

caseFeatureContext

public java.lang.Object caseFeatureContext(FeatureContext object)
Returns the result of interpretting the object as an instance of 'Feature Context'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Feature Context'.
See Also:
doSwitch(EObject)

caseDataAccessConnection

public java.lang.Object caseDataAccessConnection(DataAccessConnection object)
Returns the result of interpretting the object as an instance of 'Data Access Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Data Access Connection'.
See Also:
doSwitch(EObject)

caseParameterEnd

public java.lang.Object caseParameterEnd(ParameterEnd object)
Returns the result of interpretting the object as an instance of 'Parameter End'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Parameter End'.
See Also:
doSwitch(EObject)

caseParameterConnection

public java.lang.Object caseParameterConnection(ParameterConnection object)
Returns the result of interpretting the object as an instance of 'Parameter Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Parameter Connection'.
See Also:
doSwitch(EObject)

caseBusAccessConnection

public java.lang.Object caseBusAccessConnection(BusAccessConnection object)
Returns the result of interpretting the object as an instance of 'Bus Access Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Bus Access Connection'.
See Also:
doSwitch(EObject)

caseDataAccessEnd

public java.lang.Object caseDataAccessEnd(DataAccessEnd object)
Returns the result of interpretting the object as an instance of 'Data Access End'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Data Access End'.
See Also:
doSwitch(EObject)

caseBusAccessEnd

public java.lang.Object caseBusAccessEnd(BusAccessEnd object)
Returns the result of interpretting the object as an instance of 'Bus Access End'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Bus Access End'.
See Also:
doSwitch(EObject)

caseAObject

public java.lang.Object caseAObject(AObject object)
Returns the result of interpretting the object as an instance of 'AObject'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'AObject'.
See Also:
doSwitch(EObject)

caseNamedElement

public java.lang.Object caseNamedElement(NamedElement object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Named Element'.
See Also:
doSwitch(EObject)

casePropertyHolder

public java.lang.Object casePropertyHolder(PropertyHolder object)
Returns the result of interpretting the object as an instance of 'Property Holder'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Property Holder'.
See Also:
doSwitch(EObject)

caseModeMember

public java.lang.Object caseModeMember(ModeMember object)
Returns the result of interpretting the object as an instance of 'Mode Member'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Mode Member'.
See Also:
doSwitch(EObject)

caseReferenceElement

public java.lang.Object caseReferenceElement(ReferenceElement object)
Returns the result of interpretting the object as an instance of 'Reference 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 interpretting the object as an instance of 'Reference Element'.
See Also:
doSwitch(EObject)

caseConnection

public java.lang.Object caseConnection(Connection object)
Returns the result of interpretting the object as an instance of 'Connection'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Connection'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting 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 interpretting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)

setAadlProcessingSwitch

public void setAadlProcessingSwitch(AadlProcessingSwitch cs)