public class BusComponentsSwitch<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.
BusComponentsPackage
Constructor and Description |
---|
BusComponentsSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseBusBox(BusBox object)
Returns the result of interpreting the object as an instance of 'Bus Box'.
|
T |
caseBusCable(BusCable object)
Returns the result of interpreting the object as an instance of 'Bus Cable'.
|
T |
caseBusMaster(BusMaster object)
Returns the result of interpreting the object as an instance of 'Bus Master'.
|
T |
caseBusSlave(BusSlave object)
Returns the result of interpreting the object as an instance of 'Bus Slave'.
|
T |
caseCable(Cable object)
Returns the result of interpreting the object as an instance of 'Cable'.
|
T |
caseComponent(Component object)
Returns the result of interpreting the object as an instance of 'Component'.
|
T |
caseEtherCATBox(EtherCATBox object)
Returns the result of interpreting the object as an instance of 'Ether CAT Box'.
|
T |
caseEtherCATCable(EtherCATCable object)
Returns the result of interpreting the object as an instance of 'Ether CAT Cable'.
|
T |
caseEtherCATMaster(EtherCATMaster object)
Returns the result of interpreting the object as an instance of 'Ether CAT Master'.
|
T |
caseEtherCATSlave(EtherCATSlave object)
Returns the result of interpreting the object as an instance of 'Ether CAT Slave'.
|
T |
caseIdentifier(Identifier object)
Returns the result of interpreting the object as an instance of 'Identifier'.
|
T |
caseProfibusDPBox(ProfibusDPBox object)
Returns the result of interpreting the object as an instance of 'Profibus DP Box'.
|
T |
caseProfibusDPCable(ProfibusDPCable object)
Returns the result of interpreting the object as an instance of 'Profibus DP Cable'.
|
T |
caseProfibusDPMaster(ProfibusDPMaster object)
Returns the result of interpreting the object as an instance of 'Profibus DP Master'.
|
T |
caseProfibusDPSlave(ProfibusDPSlave object)
Returns the result of interpreting the object as an instance of 'Profibus DP Slave'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
public BusComponentsSwitch()
public T caseBusBox(BusBox object)
object
- the target of the switch.doSwitch(EObject)
public T caseBusMaster(BusMaster object)
object
- the target of the switch.doSwitch(EObject)
public T caseBusSlave(BusSlave object)
object
- the target of the switch.doSwitch(EObject)
public T caseBusCable(BusCable object)
object
- the target of the switch.doSwitch(EObject)
public T caseProfibusDPBox(ProfibusDPBox object)
object
- the target of the switch.doSwitch(EObject)
public T caseProfibusDPMaster(ProfibusDPMaster object)
object
- the target of the switch.doSwitch(EObject)
public T caseProfibusDPSlave(ProfibusDPSlave object)
object
- the target of the switch.doSwitch(EObject)
public T caseProfibusDPCable(ProfibusDPCable object)
object
- the target of the switch.doSwitch(EObject)
public T caseEtherCATBox(EtherCATBox object)
object
- the target of the switch.doSwitch(EObject)
public T caseEtherCATMaster(EtherCATMaster object)
object
- the target of the switch.doSwitch(EObject)
public T caseEtherCATSlave(EtherCATSlave object)
object
- the target of the switch.doSwitch(EObject)
public T caseEtherCATCable(EtherCATCable object)
object
- the target of the switch.doSwitch(EObject)
public T caseIdentifier(Identifier object)
object
- the target of the switch.doSwitch(EObject)
public T caseComponent(Component object)
object
- the target of the switch.doSwitch(EObject)
public T caseCable(Cable 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)