edu.cmu.sei.aadl.model.core.util
Class CoreSwitch

java.lang.Object
  extended by edu.cmu.sei.aadl.model.core.util.CoreSwitch

public class CoreSwitch
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:
CorePackage

Field Summary
static java.lang.String copyright
           
static CoreSwitch INSTANCE
           
protected static CorePackage modelPackage
          The cached model package
 
Constructor Summary
CoreSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseAadlPackage(AadlPackage object)
          Returns the result of interpretting the object as an instance of 'Aadl Package'
 java.lang.Object caseAadlPackageSection(AadlPackageSection object)
          Returns the result of interpretting the object as an instance of 'Aadl Package Section'
 java.lang.Object caseAadlPrivate(AadlPrivate object)
          Returns the result of interpretting the object as an instance of 'Aadl Private'
 java.lang.Object caseAadlPublic(AadlPublic object)
          Returns the result of interpretting the object as an instance of 'Aadl Public'
 java.lang.Object caseAadlSpec(AadlSpec object)
          Returns the result of interpretting the object as an instance of 'Aadl Spec'
 java.lang.Object caseAnnexLibrary(AnnexLibrary object)
          Returns the result of interpretting the object as an instance of 'Annex Library'
 java.lang.Object caseAnnexSubclause(AnnexSubclause object)
          Returns the result of interpretting the object as an instance of 'Annex Subclause'
 java.lang.Object caseAObject(AObject object)
          Returns the result of interpretting the object as an instance of 'AObject'
 java.lang.Object caseClassifier(Classifier object)
          Returns the result of interpretting the object as an instance of 'Classifier'
 java.lang.Object caseComponentClassifier(ComponentClassifier object)
          Returns the result of interpretting the object as an instance of 'Component Classifier'
 java.lang.Object caseComponentImpl(ComponentImpl object)
          Returns the result of interpretting the object as an instance of 'Component Impl'
 java.lang.Object caseComponentType(ComponentType object)
          Returns the result of interpretting the object as an instance of 'Component Type'
 java.lang.Object caseConnection(Connection object)
          Returns the result of interpretting the object as an instance of 'Connection'
 java.lang.Object caseDefaultAnnexLibrary(DefaultAnnexLibrary object)
          Returns the result of interpretting the object as an instance of 'Default Annex Library'
 java.lang.Object caseDefaultAnnexSubclause(DefaultAnnexSubclause object)
          Returns the result of interpretting the object as an instance of 'Default Annex Subclause'
 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 caseMode(Mode object)
          Returns the result of interpretting the object as an instance of 'Mode'
 java.lang.Object caseModeMember(ModeMember object)
          Returns the result of interpretting the object as an instance of 'Mode Member'
 java.lang.Object caseModes(Modes object)
          Returns the result of interpretting the object as an instance of 'Modes'
 java.lang.Object caseModeTransition(ModeTransition object)
          Returns the result of interpretting the object as an instance of 'Mode Transition'
 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 caseReferenceElement(ReferenceElement object)
          Returns the result of interpretting the object as an instance of 'Reference Element'
 java.lang.Object caseRefinesType(RefinesType object)
          Returns the result of interpretting the object as an instance of 'Refines Type'
 java.lang.Object caseSubcomponent(Subcomponent object)
          Returns the result of interpretting the object as an instance of 'Subcomponent'
 java.lang.Object caseSubcomponents(Subcomponents object)
          Returns the result of interpretting the object as an instance of 'Subcomponents'
 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 CoreSwitch INSTANCE

modelPackage

protected static CorePackage modelPackage
The cached model package

Constructor Detail

CoreSwitch

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

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)

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)

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)

caseAadlSpec

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

caseComponentType

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

caseComponentImpl

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

caseAadlPackage

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

caseSubcomponent

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

caseModes

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

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)

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)

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)

caseAadlPublic

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

caseAadlPrivate

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

caseAadlPackageSection

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

caseAnnexSubclause

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

caseModeTransition

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

caseRefinesType

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

caseSubcomponents

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

caseAnnexLibrary

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

caseDefaultAnnexSubclause

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

caseDefaultAnnexLibrary

public java.lang.Object caseDefaultAnnexLibrary(DefaultAnnexLibrary object)
Returns the result of interpretting the object as an instance of 'Default Annex Library'. 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 'Default Annex Library'.
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)

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)

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)