edu.cmu.sei.aadl.model.instance.util
Class InstanceSwitch

java.lang.Object
  extended by edu.cmu.sei.aadl.model.instance.util.InstanceSwitch

public class InstanceSwitch
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:
InstancePackage

Field Summary
static java.lang.String copyright
           
static InstanceSwitch INSTANCE
           
protected static InstancePackage modelPackage
          The cached model package
 
Constructor Summary
InstanceSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseAccessConnectionInstance(AccessConnectionInstance object)
          Returns the result of interpretting the object as an instance of 'Access Connection Instance'
 java.lang.Object caseAObject(AObject object)
          Returns the result of interpretting the object as an instance of 'AObject'
 java.lang.Object caseComponentInstance(ComponentInstance object)
          Returns the result of interpretting the object as an instance of 'Component Instance'
 java.lang.Object caseConnectionInstance(ConnectionInstance object)
          Returns the result of interpretting the object as an instance of 'Connection Instance'
 java.lang.Object caseEndToEndFlowInstance(EndToEndFlowInstance object)
          Returns the result of interpretting the object as an instance of 'End To End Flow Instance'
 java.lang.Object caseFeatureInstance(FeatureInstance object)
          Returns the result of interpretting the object as an instance of 'Feature Instance'
 java.lang.Object caseFlowElementInstance(FlowElementInstance object)
          Returns the result of interpretting the object as an instance of 'Flow Element Instance'
 java.lang.Object caseFlowSpecInstance(FlowSpecInstance object)
          Returns the result of interpretting the object as an instance of 'Flow Spec Instance'
 java.lang.Object caseInstanceObject(InstanceObject object)
          Returns the result of interpretting the object as an instance of 'Object'
 java.lang.Object caseInstanceReferenceValue(InstanceReferenceValue object)
          Returns the result of interpretting the object as an instance of 'Reference Value'
 java.lang.Object caseMode(Mode object)
          Returns the result of interpretting the object as an instance of 'Mode'
 java.lang.Object caseModeInstance(ModeInstance object)
          Returns the result of interpretting the object as an instance of 'Mode Instance'
 java.lang.Object caseModeTransitionConnectionInstance(ModeTransitionConnectionInstance object)
          Returns the result of interpretting the object as an instance of 'Mode Transition Connection Instance'
 java.lang.Object caseModeTransitionInstance(ModeTransitionInstance object)
          Returns the result of interpretting the object as an instance of 'Mode Transition Instance'
 java.lang.Object caseNamedElement(NamedElement object)
          Returns the result of interpretting the object as an instance of 'Named Element'
 java.lang.Object casePortConnectionInstance(PortConnectionInstance object)
          Returns the result of interpretting the object as an instance of 'Port Connection Instance'
 java.lang.Object casePropertyHolder(PropertyHolder object)
          Returns the result of interpretting the object as an instance of 'Property Holder'
 java.lang.Object casePropertyValue(PropertyValue object)
          Returns the result of interpretting the object as an instance of 'Value'
 java.lang.Object caseReferenceValue(ReferenceValue object)
          Returns the result of interpretting the object as an instance of 'Reference Value'
 java.lang.Object caseSystemInstance(SystemInstance object)
          Returns the result of interpretting the object as an instance of 'System Instance'
 java.lang.Object caseSystemInstanceConfiguration(SystemInstanceConfiguration object)
          Returns the result of interpretting the object as an instance of 'System Instance Configuration'
 java.lang.Object caseSystemOperationMode(SystemOperationMode object)
          Returns the result of interpretting the object as an instance of 'System Operation Mode'
 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 InstanceSwitch INSTANCE

modelPackage

protected static InstancePackage modelPackage
The cached model package

Constructor Detail

InstanceSwitch

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

caseFeatureInstance

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

caseConnectionInstance

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

caseComponentInstance

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

caseSystemInstance

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

caseInstanceObject

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

casePortConnectionInstance

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

caseAccessConnectionInstance

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

caseModeTransitionConnectionInstance

public java.lang.Object caseModeTransitionConnectionInstance(ModeTransitionConnectionInstance object)
Returns the result of interpretting the object as an instance of 'Mode Transition Connection 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 interpretting the object as an instance of 'Mode Transition Connection Instance'.
See Also:
doSwitch(EObject)

caseModeInstance

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

caseModeTransitionInstance

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

caseInstanceReferenceValue

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

caseSystemInstanceConfiguration

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

caseSystemOperationMode

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

caseFlowSpecInstance

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

caseEndToEndFlowInstance

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

caseFlowElementInstance

public java.lang.Object caseFlowElementInstance(FlowElementInstance object)
Returns the result of interpretting the object as an instance of 'Flow Element 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 interpretting the object as an instance of 'Flow Element Instance'.
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)

casePropertyValue

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

caseReferenceValue

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

caseMode

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