com.ibm.carma.model.util
Class ModelSwitch

java.lang.Object
  extended by com.ibm.carma.model.util.ModelSwitch

public class ModelSwitch
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:
ModelPackage

Field Summary
static java.lang.String copyright
           
 
Constructor Summary
ModelSwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseAction(Action object)
          Returns the result of interpretting the object as an instance of 'Action'.
 java.lang.Object caseCARMA(CARMA object)
          Returns the result of interpretting the object as an instance of 'CARMA'.
 java.lang.Object caseCARMAContainer(CARMAContainer object)
          Returns the result of interpretting the object as an instance of 'CARMA Container'.
 java.lang.Object caseCARMAContent(CARMAContent object)
          Returns the result of interpretting the object as an instance of 'CARMA Content'.
 java.lang.Object caseCARMAMember(CARMAMember object)
          Returns the result of interpretting the object as an instance of 'CARMA Member'.
 java.lang.Object caseCARMAMemberVersion(CARMAMemberVersion object)
          Returns the result of interpretting the object as an instance of 'CARMA Member Version'.
 java.lang.Object caseCARMAResource(CARMAResource object)
          Returns the result of interpretting the object as an instance of 'CARMA Resource'.
 java.lang.Object caseCARMAReturn(CARMAReturn object)
          Returns the result of interpretting the object as an instance of 'CARMA Return'.
 java.lang.Object caseConvertable(Convertable object)
          Returns the result of interpretting the object as an instance of 'Convertable'.
 java.lang.Object caseCustomActionAccepter(CustomActionAccepter object)
          Returns the result of interpretting the object as an instance of 'Custom Action Accepter'.
 java.lang.Object caseCustomParameter(CustomParameter object)
          Returns the result of interpretting the object as an instance of 'Custom Parameter'.
 java.lang.Object caseDefaultParameter(DefaultParameter object)
          Returns the result of interpretting the object as an instance of 'Default Parameter'.
 java.lang.Object caseField(Field object)
          Returns the result of interpretting the object as an instance of 'Field'.
 java.lang.Object caseFilterable(Filterable object)
          Returns the result of interpretting the object as an instance of 'Filterable'.
 java.lang.Object caseFilterContent(java.util.Map.Entry object)
          Returns the result of interpretting the object as an instance of 'Filter Content'.
 java.lang.Object caseKeyValuePair(java.util.Map.Entry object)
          Returns the result of interpretting the object as an instance of 'Key Value Pair'.
 java.lang.Object caseManaged(Managed object)
          Returns the result of interpretting the object as an instance of 'Managed'.
 java.lang.Object caseMovable(Movable object)
          Returns the result of interpretting the object as an instance of 'Movable'.
 java.lang.Object caseParameter(Parameter object)
          Returns the result of interpretting the object as an instance of 'Parameter'.
 java.lang.Object caseProperties(java.util.Map.Entry object)
          Returns the result of interpretting the object as an instance of 'Properties'.
 java.lang.Object caseRepositoryInstance(RepositoryInstance object)
          Returns the result of interpretting the object as an instance of 'Repository Instance'.
 java.lang.Object caseRepositoryManager(RepositoryManager object)
          Returns the result of interpretting the object as an instance of 'Repository Manager'.
 java.lang.Object caseResourceContainer(ResourceContainer object)
          Returns the result of interpretting the object as an instance of 'Resource Container'.
 java.lang.Object caseReturnItem(java.util.Map.Entry object)
          Returns the result of interpretting the object as an instance of 'Return Item'.
 java.lang.Object caseReturnValue(ReturnValue object)
          Returns the result of interpretting the object as an instance of 'Return Value'.
 java.lang.Object caseTransportConnectionListener(TransportConnectionListener object)
          Returns the result of interpretting the object as an instance of 'Transport Connection Listener'.
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Constructor Detail

ModelSwitch

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

caseCARMA

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

caseResourceContainer

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

caseCARMAMember

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

caseCARMAResource

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

caseRepositoryInstance

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

caseRepositoryManager

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

caseAction

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

caseField

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

caseMovable

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

caseCARMAContainer

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

caseManaged

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

caseKeyValuePair

public java.lang.Object caseKeyValuePair(java.util.Map.Entry object)
Returns the result of interpretting the object as an instance of 'Key Value Pair'. 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 'Key Value Pair'.
See Also:
doSwitch(EObject)

caseCARMAContent

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

caseProperties

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

caseTransportConnectionListener

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

caseReturnValue

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

caseCustomParameter

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

caseCustomActionAccepter

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

caseCARMAReturn

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

caseReturnItem

public java.lang.Object caseReturnItem(java.util.Map.Entry object)
Returns the result of interpretting the object as an instance of 'Return Item'. 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 'Return Item'.
See Also:
doSwitch(EObject)

caseDefaultParameter

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

caseConvertable

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

caseFilterable

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

caseFilterContent

public java.lang.Object caseFilterContent(java.util.Map.Entry object)
Returns the result of interpretting the object as an instance of 'Filter Content'. 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 'Filter Content'.
See Also:
doSwitch(EObject)

caseCARMAMemberVersion

public java.lang.Object caseCARMAMemberVersion(CARMAMemberVersion object)
Returns the result of interpretting the object as an instance of 'CARMA Member Version'. 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 'CARMA Member Version'.
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)