de.cau.cs.kieler.kwebs.servicedata.util
Class ServiceDataSwitch<T>

java.lang.Object
  extended by org.eclipse.emf.ecore.util.Switch<T>
      extended by de.cau.cs.kieler.kwebs.servicedata.util.ServiceDataSwitch<T>

public class ServiceDataSwitch<T>
extends Switch<T>

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:
ServiceDataPackage
Rating red
Generated:
This code was automatically generated.

Field Summary
protected static ServiceDataPackage modelPackage
          The cached model package
 
Constructor Summary
ServiceDataSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseCategory(Category object)
          Returns the result of interpreting the object as an instance of 'Category'.
 T caseKnownOption(KnownOption object)
          Returns the result of interpreting the object as an instance of 'Known Option'.
 T caseLayoutAlgorithm(LayoutAlgorithm object)
          Returns the result of interpreting the object as an instance of 'Layout Algorithm'.
 T caseLayoutOption(LayoutOption object)
          Returns the result of interpreting the object as an instance of 'Layout Option'.
 T caseLayoutType(LayoutType object)
          Returns the result of interpreting the object as an instance of 'Layout Type'.
 T caseRemoteEnum(RemoteEnum object)
          Returns the result of interpreting the object as an instance of 'Remote Enum'.
 T caseServiceData(ServiceData object)
          Returns the result of interpreting the object as an instance of 'Service Data'.
 T caseSupportedDiagram(SupportedDiagram object)
          Returns the result of interpreting the object as an instance of 'Supported Diagram'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
protected  T doSwitch(int classifierID, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
protected  boolean isSwitchFor(EPackage ePackage)
          Checks whether this is a switch for the given package.
 
Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static ServiceDataPackage modelPackage
The cached model package

Generated:
This code was automatically generated.
Constructor Detail

ServiceDataSwitch

public ServiceDataSwitch()
Creates an instance of the switch.

Generated:
This code was automatically generated.
Method Detail

isSwitchFor

protected boolean isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.

Specified by:
isSwitchFor in class Switch<T>
Returns:
whether this is a switch for the given package.
Generated:
This code was automatically generated.

doSwitch

protected T doSwitch(int classifierID,
                     EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Overrides:
doSwitch in class Switch<T>
Returns:
the first non-null result returned by a caseXXX call.
Generated:
This code was automatically generated.

caseServiceData

public T caseServiceData(ServiceData object)
Returns the result of interpreting the object as an instance of 'Service Data'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Service Data'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseLayoutAlgorithm

public T caseLayoutAlgorithm(LayoutAlgorithm object)
Returns the result of interpreting the object as an instance of 'Layout Algorithm'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Layout Algorithm'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseLayoutType

public T caseLayoutType(LayoutType object)
Returns the result of interpreting the object as an instance of 'Layout 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 interpreting the object as an instance of 'Layout Type'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseLayoutOption

public T caseLayoutOption(LayoutOption object)
Returns the result of interpreting the object as an instance of 'Layout Option'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Layout Option'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseCategory

public T caseCategory(Category object)
Returns the result of interpreting the object as an instance of 'Category'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Category'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseKnownOption

public T caseKnownOption(KnownOption object)
Returns the result of interpreting the object as an instance of 'Known Option'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Known Option'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseSupportedDiagram

public T caseSupportedDiagram(SupportedDiagram object)
Returns the result of interpreting the object as an instance of 'Supported Diagram'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Supported Diagram'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseRemoteEnum

public T caseRemoteEnum(RemoteEnum object)
Returns the result of interpreting the object as an instance of 'Remote Enum'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Remote Enum'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

defaultCase

public T defaultCase(EObject object)
Returns the result of interpreting 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.

Overrides:
defaultCase in class Switch<T>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
Generated:
This code was automatically generated.