edu.cmu.sei.aadl.model.feature.util
Class FeatureSwitch

java.lang.Object
  extended by edu.cmu.sei.aadl.model.feature.util.FeatureSwitch

public class FeatureSwitch
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:
FeaturePackage

Field Summary
static java.lang.String copyright
           
static FeatureSwitch INSTANCE
           
protected static FeaturePackage modelPackage
          The cached model package
 
Constructor Summary
FeatureSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseAbstractPort(AbstractPort object)
          Returns the result of interpretting the object as an instance of 'Abstract Port'
 java.lang.Object caseAObject(AObject object)
          Returns the result of interpretting the object as an instance of 'AObject'
 java.lang.Object caseBusAccess(BusAccess object)
          Returns the result of interpretting the object as an instance of 'Bus Access'
 java.lang.Object caseBusAccessEnd(BusAccessEnd object)
          Returns the result of interpretting the object as an instance of 'Bus Access End'
 java.lang.Object caseBusFeatures(BusFeatures object)
          Returns the result of interpretting the object as an instance of 'Bus Features'
 java.lang.Object caseClassifier(Classifier object)
          Returns the result of interpretting the object as an instance of 'Classifier'
 java.lang.Object caseComponentAccess(ComponentAccess object)
          Returns the result of interpretting the object as an instance of 'Component Access'
 java.lang.Object caseComponentClassifier(ComponentClassifier object)
          Returns the result of interpretting the object as an instance of 'Component Classifier'
 java.lang.Object caseDataAccess(DataAccess object)
          Returns the result of interpretting the object as an instance of 'Data Access'
 java.lang.Object caseDataAccessEnd(DataAccessEnd object)
          Returns the result of interpretting the object as an instance of 'Data Access End'
 java.lang.Object caseDataFeatures(DataFeatures object)
          Returns the result of interpretting the object as an instance of 'Data Features'
 java.lang.Object caseDataPort(DataPort object)
          Returns the result of interpretting the object as an instance of 'Data Port'
 java.lang.Object caseDeviceFeatures(DeviceFeatures object)
          Returns the result of interpretting the object as an instance of 'Device Features'
 java.lang.Object caseEventDataPort(EventDataPort object)
          Returns the result of interpretting the object as an instance of 'Event Data Port'
 java.lang.Object caseEventPort(EventPort object)
          Returns the result of interpretting the object as an instance of 'Event Port'
 java.lang.Object caseFeature(Feature object)
          Returns the result of interpretting the object as an instance of 'Feature'
 java.lang.Object caseFeatureContext(FeatureContext object)
          Returns the result of interpretting the object as an instance of 'Feature Context'
 java.lang.Object caseFeatures(Features object)
          Returns the result of interpretting the object as an instance of 'Features'
 java.lang.Object caseFlowPoint(FlowPoint object)
          Returns the result of interpretting the object as an instance of 'Point'
 java.lang.Object caseMemoryFeatures(MemoryFeatures object)
          Returns the result of interpretting the object as an instance of 'Memory Features'
 java.lang.Object caseNamedElement(NamedElement object)
          Returns the result of interpretting the object as an instance of 'Named Element'
 java.lang.Object caseParameter(Parameter object)
          Returns the result of interpretting the object as an instance of 'Parameter'
 java.lang.Object caseParameterEnd(ParameterEnd object)
          Returns the result of interpretting the object as an instance of 'Parameter End'
 java.lang.Object casePort(Port object)
          Returns the result of interpretting the object as an instance of 'Port'
 java.lang.Object casePortGroup(PortGroup object)
          Returns the result of interpretting the object as an instance of 'Port Group'
 java.lang.Object casePortGroupFeatures(PortGroupFeatures object)
          Returns the result of interpretting the object as an instance of 'Port Group Features'
 java.lang.Object casePortGroupType(PortGroupType object)
          Returns the result of interpretting the object as an instance of 'Port Group Type'
 java.lang.Object caseProcessFeatures(ProcessFeatures object)
          Returns the result of interpretting the object as an instance of 'Process Features'
 java.lang.Object caseProcessorFeatures(ProcessorFeatures object)
          Returns the result of interpretting the object as an instance of 'Processor Features'
 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 caseServerSubprogram(ServerSubprogram object)
          Returns the result of interpretting the object as an instance of 'Server Subprogram'
 java.lang.Object caseSoftwareFeatures(SoftwareFeatures object)
          Returns the result of interpretting the object as an instance of 'Software Features'
 java.lang.Object caseSubprogram(Subprogram object)
          Returns the result of interpretting the object as an instance of 'Subprogram'
 java.lang.Object caseSubprogramFeatures(SubprogramFeatures object)
          Returns the result of interpretting the object as an instance of 'Subprogram Features'
 java.lang.Object caseSystemFeatures(SystemFeatures object)
          Returns the result of interpretting the object as an instance of 'System Features'
 java.lang.Object caseThreadFeatures(ThreadFeatures object)
          Returns the result of interpretting the object as an instance of 'Thread Features'
 java.lang.Object caseThreadGroupFeatures(ThreadGroupFeatures object)
          Returns the result of interpretting the object as an instance of 'Thread Group Features'
 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 FeatureSwitch INSTANCE

modelPackage

protected static FeaturePackage modelPackage
The cached model package

Constructor Detail

FeatureSwitch

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

caseSubprogram

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

caseServerSubprogram

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

caseDataAccess

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

caseBusAccess

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

casePort

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

caseDataPort

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

caseEventPort

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

caseEventDataPort

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

caseParameter

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

casePortGroupType

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

casePortGroup

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

caseDataFeatures

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

caseSubprogramFeatures

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

caseSoftwareFeatures

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

caseThreadFeatures

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

caseThreadGroupFeatures

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

caseProcessFeatures

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

caseProcessorFeatures

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

caseMemoryFeatures

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

caseBusFeatures

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

caseDeviceFeatures

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

caseSystemFeatures

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

caseComponentAccess

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

casePortGroupFeatures

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

caseAbstractPort

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

caseFeature

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

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)

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)

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)

caseClassifier

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

caseComponentClassifier

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

caseFeatures

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