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 Summary
Fields Modifier and Type Field Description protected static IotmodelPackagemodelPackageThe cached model package -
Constructor Summary
Constructors Constructor Description IotmodelSwitch()Creates an instance of the switch. -
Method Summary
Modifier and Type Method Description TcaseAccessControlPolicy(AccessControlPolicy object)Returns the result of interpreting the object as an instance of 'Access Control Policy'.TcaseAction(Action object)Returns the result of interpreting the object as an instance of 'Action'.TcaseActor(Actor object)Returns the result of interpreting the object as an instance of 'Actor'.TcaseActuator(Actuator object)Returns the result of interpreting the object as an instance of 'Actuator'.TcaseAllowPermission(AllowPermission object)Returns the result of interpreting the object as an instance of 'Allow Permission'.TcaseAppChannel(AppChannel object)Returns the result of interpreting the object as an instance of 'App Channel'.TcaseAppPort(AppPort object)Returns the result of interpreting the object as an instance of 'App Port'.TcaseBehavior(Behavior object)Returns the result of interpreting the object as an instance of 'Behavior'.TcaseConstraintExpression(ConstraintExpression object)Returns the result of interpreting the object as an instance of 'Constraint Expression'.TcaseData(Data object)Returns the result of interpreting the object as an instance of 'Data'.TcaseDefaultPolicy(DefaultPolicy object)Returns the result of interpreting the object as an instance of 'Default Policy'.TcaseDenyPermission(DenyPermission object)Returns the result of interpreting the object as an instance of 'Deny Permission'.TcaseDesktopApp(DesktopApp object)Returns the result of interpreting the object as an instance of 'Desktop App'.TcaseEdgeDevice(EdgeDevice object)Returns the result of interpreting the object as an instance of 'Edge Device'.TcaseEvent(Event object)Returns the result of interpreting the object as an instance of 'Event'.TcaseGateway(Gateway object)Returns the result of interpreting the object as an instance of 'Gateway'.TcaseID(ID object)Returns the result of interpreting the object as an instance of 'ID'.TcaseIoTMetamodel(IoTMetamodel object)Returns the result of interpreting the object as an instance of 'Io TMetamodel'.TcaseIoTOs(IoTOs object)Returns the result of interpreting the object as an instance of 'Io TOs'.TcaseIoTPlatform(IoTPlatform object)Returns the result of interpreting the object as an instance of 'Io TPlatform'.TcaseMaliciousActor(MaliciousActor object)Returns the result of interpreting the object as an instance of 'Malicious Actor'.TcaseMessage(Message object)Returns the result of interpreting the object as an instance of 'Message'.TcaseMessageBroker(MessageBroker object)Returns the result of interpreting the object as an instance of 'Message Broker'.TcaseMessageFormat(MessageFormat object)Returns the result of interpreting the object as an instance of 'Message Format'.TcaseMobileApp(MobileApp object)Returns the result of interpreting the object as an instance of 'Mobile App'.TcaseNetwork(Network object)Returns the result of interpreting the object as an instance of 'Network'.TcasePermission(Permission object)Returns the result of interpreting the object as an instance of 'Permission'.TcasePrivatePolicy(PrivatePolicy object)Returns the result of interpreting the object as an instance of 'Private Policy'.TcaseProgrammingModel(ProgrammingModel object)Returns the result of interpreting the object as an instance of 'Programming Model'.TcaseProtocolStack(ProtocolStack object)Returns the result of interpreting the object as an instance of 'Protocol Stack'.TcasePublishSubscribe(PublishSubscribe object)Returns the result of interpreting the object as an instance of 'Publish Subscribe'.TcaseRequestResponse(RequestResponse object)Returns the result of interpreting the object as an instance of 'Request Response'.TcaseRule(Rule object)Returns the result of interpreting the object as an instance of 'Rule'.TcaseSensor(Sensor object)Returns the result of interpreting the object as an instance of 'Sensor'.TcaseSharedAction(SharedAction object)Returns the result of interpreting the object as an instance of 'Shared Action'.TcaseThing(Thing object)Returns the result of interpreting the object as an instance of 'Thing'.TcaseTopic(Topic object)Returns the result of interpreting the object as an instance of 'Topic'.TcaseUserApplication(UserApplication object)Returns the result of interpreting the object as an instance of 'User Application'.TcaseWebServer(WebServer object)Returns the result of interpreting the object as an instance of 'Web Server'.TdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)Checks whether this is a switch for the given package.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
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:
isSwitchForin classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<T>- Returns:
- the first non-null result returned by a
caseXXXcall.
-
caseGateway
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
-
caseAppPort
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
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
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
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
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:
defaultCasein classorg.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)
-