Package iotmodel.util

Class IotmodelSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
iotmodel.util.IotmodelSwitch<T>

public class IotmodelSwitch<T>
extends org.eclipse.emf.ecore.util.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:
IotmodelPackage
  • Field Details

    • modelPackage

      protected static IotmodelPackage modelPackage
      The cached model package
  • Constructor Details

    • IotmodelSwitch

      public IotmodelSwitch()
      Creates an instance of the switch.
  • Method Details

    • isSwitchFor

      protected boolean isSwitchFor​(org.eclipse.emf.ecore.EPackage ePackage)
      Checks whether this is a switch for the given package.
      Specified by:
      isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • doSwitch

      protected T 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.
      Overrides:
      doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseGateway

      public T caseGateway​(Gateway object)
      Returns the result of interpreting the object as an instance of 'Gateway'. 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 'Gateway'.
      See Also:
      doSwitch(EObject)
    • caseEdgeDevice

      public T caseEdgeDevice​(EdgeDevice object)
      Returns the result of interpreting the object as an instance of 'Edge Device'. 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 'Edge Device'.
      See Also:
      doSwitch(EObject)
    • caseAppChannel

      public T caseAppChannel​(AppChannel object)
      Returns the result of interpreting the object as an instance of 'App Channel'. 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 'App Channel'.
      See Also:
      doSwitch(EObject)
    • caseNetwork

      public T caseNetwork​(Network object)
      Returns the result of interpreting the object as an instance of 'Network'. 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 'Network'.
      See Also:
      doSwitch(EObject)
    • caseRequestResponse

      public T caseRequestResponse​(RequestResponse object)
      Returns the result of interpreting the object as an instance of 'Request Response'. 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 'Request Response'.
      See Also:
      doSwitch(EObject)
    • casePublishSubscribe

      public T casePublishSubscribe​(PublishSubscribe object)
      Returns the result of interpreting the object as an instance of 'Publish Subscribe'. 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 'Publish Subscribe'.
      See Also:
      doSwitch(EObject)
    • caseThing

      public T caseThing​(Thing object)
      Returns the result of interpreting the object as an instance of 'Thing'. 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 'Thing'.
      See Also:
      doSwitch(EObject)
    • caseAccessControlPolicy

      public T caseAccessControlPolicy​(AccessControlPolicy object)
      Returns the result of interpreting the object as an instance of 'Access Control Policy'. 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 'Access Control Policy'.
      See Also:
      doSwitch(EObject)
    • caseProtocolStack

      public T caseProtocolStack​(ProtocolStack object)
      Returns the result of interpreting the object as an instance of 'Protocol Stack'. 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 'Protocol Stack'.
      See Also:
      doSwitch(EObject)
    • caseRule

      public T caseRule​(Rule object)
      Returns the result of interpreting the object as an instance of 'Rule'. 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 'Rule'.
      See Also:
      doSwitch(EObject)
    • caseIoTOs

      public T caseIoTOs​(IoTOs object)
      Returns the result of interpreting the object as an instance of 'Io TOs'. 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 'Io TOs'.
      See Also:
      doSwitch(EObject)
    • caseIoTPlatform

      public T caseIoTPlatform​(IoTPlatform object)
      Returns the result of interpreting the object as an instance of 'Io TPlatform'. 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 'Io TPlatform'.
      See Also:
      doSwitch(EObject)
    • caseMessage

      public T caseMessage​(Message object)
      Returns the result of interpreting the object as an instance of 'Message'. 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 'Message'.
      See Also:
      doSwitch(EObject)
    • caseMessageFormat

      public T caseMessageFormat​(MessageFormat object)
      Returns the result of interpreting the object as an instance of 'Message Format'. 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 'Message Format'.
      See Also:
      doSwitch(EObject)
    • caseMessageBroker

      public T caseMessageBroker​(MessageBroker object)
      Returns the result of interpreting the object as an instance of 'Message Broker'. 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 'Message Broker'.
      See Also:
      doSwitch(EObject)
    • caseTopic

      public T caseTopic​(Topic object)
      Returns the result of interpreting the object as an instance of 'Topic'. 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 'Topic'.
      See Also:
      doSwitch(EObject)
    • caseUserApplication

      public T caseUserApplication​(UserApplication object)
      Returns the result of interpreting the object as an instance of 'User Application'. 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 'User Application'.
      See Also:
      doSwitch(EObject)
    • caseDesktopApp

      public T caseDesktopApp​(DesktopApp object)
      Returns the result of interpreting the object as an instance of 'Desktop App'. 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 'Desktop App'.
      See Also:
      doSwitch(EObject)
    • caseMobileApp

      public T caseMobileApp​(MobileApp object)
      Returns the result of interpreting the object as an instance of 'Mobile App'. 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 'Mobile App'.
      See Also:
      doSwitch(EObject)
    • caseWebServer

      public T caseWebServer​(WebServer object)
      Returns the result of interpreting the object as an instance of 'Web Server'. 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 'Web Server'.
      See Also:
      doSwitch(EObject)
    • caseDefaultPolicy

      public T caseDefaultPolicy​(DefaultPolicy object)
      Returns the result of interpreting the object as an instance of 'Default Policy'. 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 'Default Policy'.
      See Also:
      doSwitch(EObject)
    • casePrivatePolicy

      public T casePrivatePolicy​(PrivatePolicy object)
      Returns the result of interpreting the object as an instance of 'Private Policy'. 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 'Private Policy'.
      See Also:
      doSwitch(EObject)
    • casePermission

      public T casePermission​(Permission object)
      Returns the result of interpreting the object as an instance of 'Permission'. 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 'Permission'.
      See Also:
      doSwitch(EObject)
    • caseConstraintExpression

      public T caseConstraintExpression​(ConstraintExpression object)
      Returns the result of interpreting the object as an instance of 'Constraint Expression'. 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 'Constraint Expression'.
      See Also:
      doSwitch(EObject)
    • caseAllowPermission

      public T caseAllowPermission​(AllowPermission object)
      Returns the result of interpreting the object as an instance of 'Allow Permission'. 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 'Allow Permission'.
      See Also:
      doSwitch(EObject)
    • caseDenyPermission

      public T caseDenyPermission​(DenyPermission object)
      Returns the result of interpreting the object as an instance of 'Deny Permission'. 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 'Deny Permission'.
      See Also:
      doSwitch(EObject)
    • caseSensor

      public T caseSensor​(Sensor object)
      Returns the result of interpreting the object as an instance of 'Sensor'. 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 'Sensor'.
      See Also:
      doSwitch(EObject)
    • caseActuator

      public T caseActuator​(Actuator object)
      Returns the result of interpreting the object as an instance of 'Actuator'. 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 'Actuator'.
      See Also:
      doSwitch(EObject)
    • caseIoTMetamodel

      public T caseIoTMetamodel​(IoTMetamodel object)
      Returns the result of interpreting the object as an instance of 'Io TMetamodel'. 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 'Io TMetamodel'.
      See Also:
      doSwitch(EObject)
    • caseID

      public T caseID​(ID object)
      Returns the result of interpreting the object as an instance of '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 'ID'.
      See Also:
      doSwitch(EObject)
    • caseBehavior

      public T caseBehavior​(Behavior object)
      Returns the result of interpreting the object as an instance of 'Behavior'. 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 'Behavior'.
      See Also:
      doSwitch(EObject)
    • caseAction

      public T caseAction​(Action object)
      Returns the result of interpreting 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 interpreting the object as an instance of 'Action'.
      See Also:
      doSwitch(EObject)
    • caseEvent

      public T caseEvent​(Event object)
      Returns the result of interpreting the object as an instance of 'Event'. 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 'Event'.
      See Also:
      doSwitch(EObject)
    • caseProgrammingModel

      public T caseProgrammingModel​(ProgrammingModel object)
      Returns the result of interpreting the object as an instance of 'Programming Model'. 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 'Programming Model'.
      See Also:
      doSwitch(EObject)
    • caseSharedAction

      public T caseSharedAction​(SharedAction object)
      Returns the result of interpreting the object as an instance of 'Shared 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 interpreting the object as an instance of 'Shared Action'.
      See Also:
      doSwitch(EObject)
    • caseAppPort

      public T caseAppPort​(AppPort object)
      Returns the result of interpreting the object as an instance of 'App Port'. 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 'App Port'.
      See Also:
      doSwitch(EObject)
    • caseData

      public T caseData​(Data object)
      Returns the result of interpreting the object as an instance of '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 'Data'.
      See Also:
      doSwitch(EObject)
    • caseActor

      public T caseActor​(Actor object)
      Returns the result of interpreting the object as an instance of 'Actor'. 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 'Actor'.
      See Also:
      doSwitch(EObject)
    • caseMaliciousActor

      public T caseMaliciousActor​(MaliciousActor object)
      Returns the result of interpreting the object as an instance of 'Malicious Actor'. 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 'Malicious Actor'.
      See Also:
      doSwitch(EObject)
    • defaultCase

      public T 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.
      Overrides:
      defaultCase in class org.eclipse.emf.ecore.util.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)