org.eclipse.ecf.discovery.ui.model.util
Class ModelSwitch

java.lang.Object
  extended by org.eclipse.ecf.discovery.ui.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
Generated

Field Summary
protected static ModelPackage modelPackage
          The cached model package
 
Constructor Summary
ModelSwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseIHost(IHost object)
          Returns the result of interpreting the object as an instance of 'IHost'.
 java.lang.Object caseINetwork(INetwork object)
          Returns the result of interpreting the object as an instance of 'INetwork'.
 java.lang.Object caseIServiceID(IServiceID object)
          Returns the result of interpreting the object as an instance of 'IService ID'.
 java.lang.Object caseIServiceInfo(IServiceInfo object)
          Returns the result of interpreting the object as an instance of 'IService Info'.
 java.lang.Object caseIServiceTypeID(IServiceTypeID object)
          Returns the result of interpreting the object as an instance of 'IService Type ID'.
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static ModelPackage modelPackage
The cached model package

Generated
Constructor Detail

ModelSwitch

public ModelSwitch()
Creates an instance of the switch.

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

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

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

caseIServiceInfo

public java.lang.Object caseIServiceInfo(IServiceInfo object)
Returns the result of interpreting the object as an instance of 'IService Info'. 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 'IService Info'.
See Also:
doSwitch(EObject)
Generated

caseINetwork

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

caseIHost

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

caseIServiceID

public java.lang.Object caseIServiceID(IServiceID object)
Returns the result of interpreting the object as an instance of 'IService ID'. 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 'IService ID'.
See Also:
doSwitch(EObject)
Generated

caseIServiceTypeID

public java.lang.Object caseIServiceTypeID(IServiceTypeID object)
Returns the result of interpreting the object as an instance of 'IService Type ID'. 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 'IService Type ID'.
See Also:
doSwitch(EObject)
Generated

defaultCase

public java.lang.Object defaultCase(org.eclipse.emf.ecore.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.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)
Generated