Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb.config.util
Class ConfigSwitch

java.lang.Object
  extended by org.apache.tuscany.das.rdb.config.util.ConfigSwitch

public class ConfigSwitch
extends 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:
ConfigPackageImpl

Field Summary
protected static ConfigPackageImpl modelPackage
          The cached model package
 
Constructor Summary
ConfigSwitch()
          Creates an instance of the switch.
 
Method Summary
 Object caseColumn(Column object)
          Returns the result of interpretting the object as an instance of 'Column'.
 Object caseCommand(Command object)
          Returns the result of interpretting the object as an instance of 'Command'.
 Object caseConfig(Config object)
          Returns the result of interpretting the object as an instance of 'Config'.
 Object caseConnectionProperties(ConnectionProperties object)
          Returns the result of interpretting the object as an instance of 'Connection Properties'.
 Object caseKeyPair(KeyPair object)
          Returns the result of interpretting the object as an instance of 'Key Pair'.
 Object caseParameter(Parameter object)
          Returns the result of interpretting the object as an instance of 'Parameter'.
 Object caseRelationship(Relationship object)
          Returns the result of interpretting the object as an instance of 'Relationship'.
 Object caseResultDescriptor(ResultDescriptor object)
          Returns the result of interpretting the object as an instance of 'Result Descriptor'.
 Object caseTable(Table object)
          Returns the result of interpretting the object as an instance of 'Table'.
 Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
protected  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.
 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  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static ConfigPackageImpl modelPackage
The cached model package

Constructor Detail

ConfigSwitch

public ConfigSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public 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 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 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.

caseColumn

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

caseCommand

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

caseConfig

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

caseConnectionProperties

public Object caseConnectionProperties(ConnectionProperties object)
Returns the result of interpretting the object as an instance of 'Connection 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 'Connection Properties'.
See Also:
doSwitch(EObject)

caseKeyPair

public Object caseKeyPair(KeyPair object)
Returns the result of interpretting the object as an instance of 'Key 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 Pair'.
See Also:
doSwitch(EObject)

caseParameter

public 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)

caseRelationship

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

caseResultDescriptor

public Object caseResultDescriptor(ResultDescriptor object)
Returns the result of interpretting the object as an instance of 'Result Descriptor'. 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 'Result Descriptor'.
See Also:
doSwitch(EObject)

caseTable

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

defaultCase

public 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)

Tuscany DAS for Relational Databases

-