edu.cmu.sei.aadl.model.flow.util
Class FlowSwitch

java.lang.Object
  extended by edu.cmu.sei.aadl.model.flow.util.FlowSwitch

public class FlowSwitch
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:
FlowPackage

Field Summary
static java.lang.String copyright
           
static FlowSwitch INSTANCE
           
protected static FlowPackage modelPackage
          The cached model package
 
Constructor Summary
FlowSwitch()
          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 caseEndToEndFlow(EndToEndFlow object)
          Returns the result of interpretting the object as an instance of 'End To End Flow'
 java.lang.Object caseFlowElement(FlowElement object)
          Returns the result of interpretting the object as an instance of 'Element'
 java.lang.Object caseFlowImpl(FlowImpl object)
          Returns the result of interpretting the object as an instance of 'Impl'
 java.lang.Object caseFlowPathImpl(FlowPathImpl object)
          Returns the result of interpretting the object as an instance of 'Path Impl'
 java.lang.Object caseFlowPathSpec(FlowPathSpec object)
          Returns the result of interpretting the object as an instance of 'Path Spec'
 java.lang.Object caseFlowPoint(FlowPoint object)
          Returns the result of interpretting the object as an instance of 'Point'
 java.lang.Object caseFlows(Flows object)
          Returns the result of interpretting the object as an instance of 'Flows'
 java.lang.Object caseFlowSequence(FlowSequence object)
          Returns the result of interpretting the object as an instance of 'Sequence'
 java.lang.Object caseFlowSinkImpl(FlowSinkImpl object)
          Returns the result of interpretting the object as an instance of 'Sink Impl'
 java.lang.Object caseFlowSinkSpec(FlowSinkSpec object)
          Returns the result of interpretting the object as an instance of 'Sink Spec'
 java.lang.Object caseFlowSourceImpl(FlowSourceImpl object)
          Returns the result of interpretting the object as an instance of 'Source Impl'
 java.lang.Object caseFlowSourceSpec(FlowSourceSpec object)
          Returns the result of interpretting the object as an instance of 'Source Spec'
 java.lang.Object caseFlowSpec(FlowSpec object)
          Returns the result of interpretting the object as an instance of 'Spec'
 java.lang.Object caseFlowSpecs(FlowSpecs object)
          Returns the result of interpretting the object as an instance of 'Specs'
 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 casePropertyHolder(PropertyHolder object)
          Returns the result of interpretting the object as an instance of 'Property Holder'
 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 FlowSwitch INSTANCE

modelPackage

protected static FlowPackage modelPackage
The cached model package

Constructor Detail

FlowSwitch

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

caseFlowSpec

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

caseFlows

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

caseFlowImpl

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

caseFlowSpecs

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

caseFlowSequence

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

caseEndToEndFlow

public java.lang.Object caseEndToEndFlow(EndToEndFlow object)
Returns the result of interpretting the object as an instance of 'End To End Flow'. 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 'End To End Flow'.
See Also:
doSwitch(EObject)

caseFlowPoint

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

caseFlowSourceSpec

public java.lang.Object caseFlowSourceSpec(FlowSourceSpec object)
Returns the result of interpretting the object as an instance of 'Source Spec'. 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 'Source Spec'.
See Also:
doSwitch(EObject)

caseFlowSinkSpec

public java.lang.Object caseFlowSinkSpec(FlowSinkSpec object)
Returns the result of interpretting the object as an instance of 'Sink Spec'. 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 'Sink Spec'.
See Also:
doSwitch(EObject)

caseFlowPathSpec

public java.lang.Object caseFlowPathSpec(FlowPathSpec object)
Returns the result of interpretting the object as an instance of 'Path Spec'. 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 'Path Spec'.
See Also:
doSwitch(EObject)

caseFlowElement

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

caseFlowSourceImpl

public java.lang.Object caseFlowSourceImpl(FlowSourceImpl object)
Returns the result of interpretting the object as an instance of 'Source Impl'. 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 'Source Impl'.
See Also:
doSwitch(EObject)

caseFlowSinkImpl

public java.lang.Object caseFlowSinkImpl(FlowSinkImpl object)
Returns the result of interpretting the object as an instance of 'Sink Impl'. 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 'Sink Impl'.
See Also:
doSwitch(EObject)

caseFlowPathImpl

public java.lang.Object caseFlowPathImpl(FlowPathImpl object)
Returns the result of interpretting the object as an instance of 'Path Impl'. 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 'Path Impl'.
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)

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)