public class ModbusSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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.
ModbusPackage
Modifier and Type | Field and Description |
---|---|
protected static ModbusPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
ModbusSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseApplication(Application object)
Returns the result of interpreting the object as an instance of '
Application'.
|
T |
caseApplicationModule(ApplicationModule object)
Returns the result of interpreting the object as an instance of '
Application Module'.
|
T |
caseDevice(Device object)
Returns the result of interpreting the object as an instance of '
Device'.
|
T |
caseDocumentable(Documentable object)
Returns the result of interpreting the object as an instance of '
Documentable'.
|
T |
caseDriver(Driver object)
Returns the result of interpreting the object as an instance of '
Driver'.
|
T |
caseEquinoxApplication(EquinoxApplication object)
Returns the result of interpreting the object as an instance of '
Equinox Application'.
|
T |
caseModbusBlock(ModbusBlock object)
Returns the result of interpreting the object as an instance of '
Block'.
|
T |
caseModbusDataType(ModbusDataType object)
Returns the result of interpreting the object as an instance of '
Data Type'.
|
T |
caseModbusDevice(ModbusDevice object)
Returns the result of interpreting the object as an instance of '
Device'.
|
T |
caseModbusDouble(ModbusDouble object)
Returns the result of interpreting the object as an instance of '
Double'.
|
T |
caseModbusDriver(ModbusDriver object)
Returns the result of interpreting the object as an instance of '
Driver'.
|
T |
caseModbusExporter(ModbusExporter object)
Returns the result of interpreting the object as an instance of '
Exporter'.
|
T |
caseModbusExporterDevice(ModbusExporterDevice object)
Returns the result of interpreting the object as an instance of '
Exporter Device'.
|
T |
caseModbusExporterItem(ModbusExporterItem object)
Returns the result of interpreting the object as an instance of '
Exporter Item'.
|
T |
caseModbusMaster(ModbusMaster object)
Returns the result of interpreting the object as an instance of '
Master'.
|
T |
caseModbusSInt16(ModbusSInt16 object)
Returns the result of interpreting the object as an instance of '
SInt16'.
|
T |
caseModbusSInt32(ModbusSInt32 object)
Returns the result of interpreting the object as an instance of '
SInt32'.
|
T |
caseModbusSlave(ModbusSlave object)
Returns the result of interpreting the object as an instance of '
Slave'.
|
T |
caseModbusUInt16(ModbusUInt16 object)
Returns the result of interpreting the object as an instance of '
UInt16'.
|
T |
caseModbusUInt32(ModbusUInt32 object)
Returns the result of interpreting the object as an instance of '
UInt32'.
|
T |
caseNamedDocumentable(NamedDocumentable object)
Returns the result of interpreting the object as an instance of '
Named Documentable'.
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of '
EObject'.
|
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. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package.
|
protected static ModbusPackage modelPackage
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns
a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseModbusDevice(ModbusDevice object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusDriver(ModbusDriver object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusSlave(ModbusSlave object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusMaster(ModbusMaster object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusBlock(ModbusBlock object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusExporter(ModbusExporter object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusExporterDevice(ModbusExporterDevice object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusExporterItem(ModbusExporterItem object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusDataType(ModbusDataType object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusDouble(ModbusDouble object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusSInt16(ModbusSInt16 object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusSInt32(ModbusSInt32 object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusUInt16(ModbusUInt16 object)
object
- the target of the switch.doSwitch(EObject)
public T caseModbusUInt32(ModbusUInt32 object)
object
- the target of the switch.doSwitch(EObject)
public T caseDocumentable(Documentable object)
object
- the target of the switch.doSwitch(EObject)
public T caseDevice(Device object)
object
- the target of the switch.doSwitch(EObject)
public T caseNamedDocumentable(NamedDocumentable object)
object
- the target of the switch.doSwitch(EObject)
public T caseApplication(Application object)
object
- the target of the switch.doSwitch(EObject)
public T caseDriver(Driver object)
object
- the target of the switch.doSwitch(EObject)
public T caseEquinoxApplication(EquinoxApplication object)
object
- the target of the switch.doSwitch(EObject)
public T caseApplicationModule(ApplicationModule object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)