public class ModuleRepositorySwitch<T> extends 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.
ModuleRepositoryPackage
Constructor and Description |
---|
ModuleRepositorySwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseIdentifier(Identifier object)
Returns the result of interpreting the object as an instance of 'Identifier'.
|
T |
caseInductiveSensorModule(InductiveSensorModule object)
Returns the result of interpreting the object as an instance of 'Inductive Sensor Module'.
|
T |
caseModule(Module object)
Returns the result of interpreting the object as an instance of 'Module'.
|
T |
caseMotorModule(MotorModule object)
Returns the result of interpreting the object as an instance of 'Motor Module'.
|
T |
caseOpticalSensorModule(OpticalSensorModule object)
Returns the result of interpreting the object as an instance of 'Optical Sensor Module'.
|
T |
casePresenceSensorModule(PresenceSensorModule object)
Returns the result of interpreting the object as an instance of 'Presence Sensor Module'.
|
T |
casePressureSensorModule(PressureSensorModule object)
Returns the result of interpreting the object as an instance of 'Pressure Sensor Module'.
|
T |
casePusherModule(PusherModule object)
Returns the result of interpreting the object as an instance of 'Pusher Module'.
|
T |
caseRampModule(RampModule object)
Returns the result of interpreting the object as an instance of 'Ramp Module'.
|
T |
caseSensorModule(SensorModule object)
Returns the result of interpreting the object as an instance of 'Sensor Module'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
public ModuleRepositorySwitch()
public T caseModule(Module object)
object
- the target of the switch.doSwitch(EObject)
public T caseRampModule(RampModule object)
object
- the target of the switch.doSwitch(EObject)
public T casePusherModule(PusherModule object)
object
- the target of the switch.doSwitch(EObject)
public T caseMotorModule(MotorModule object)
object
- the target of the switch.doSwitch(EObject)
public T caseSensorModule(SensorModule object)
object
- the target of the switch.doSwitch(EObject)
public T caseOpticalSensorModule(OpticalSensorModule object)
object
- the target of the switch.doSwitch(EObject)
public T caseInductiveSensorModule(InductiveSensorModule object)
object
- the target of the switch.doSwitch(EObject)
public T casePresenceSensorModule(PresenceSensorModule object)
object
- the target of the switch.doSwitch(EObject)
public T casePressureSensorModule(PressureSensorModule object)
object
- the target of the switch.doSwitch(EObject)
public T caseIdentifier(Identifier object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(EObject object)
defaultCase
in class Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)