|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.etrice.core.room.util.RoomSwitch<T>
public class RoomSwitch<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.
RoomPackage
Field Summary | |
---|---|
protected static RoomPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
RoomSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseActorClass(ActorClass object)
Returns the result of interpreting the object as an instance of 'Actor Class'. |
T |
caseActorContainerClass(ActorContainerClass object)
Returns the result of interpreting the object as an instance of 'Actor Container Class'. |
T |
caseActorContainerRef(ActorContainerRef object)
Returns the result of interpreting the object as an instance of 'Actor Container Ref'. |
T |
caseActorInstancePath(ActorInstancePath object)
Returns the result of interpreting the object as an instance of 'Actor Instance Path'. |
T |
caseActorRef(ActorRef object)
Returns the result of interpreting the object as an instance of 'Actor Ref'. |
T |
caseAnnotation(Annotation object)
Returns the result of interpreting the object as an instance of 'Annotation'. |
T |
caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'. |
T |
caseBaseState(BaseState object)
Returns the result of interpreting the object as an instance of 'Base State'. |
T |
caseBasicType(BasicType object)
Returns the result of interpreting the object as an instance of 'Basic Type'. |
T |
caseBinding(Binding object)
Returns the result of interpreting the object as an instance of 'Binding'. |
T |
caseBindingEndPoint(BindingEndPoint object)
Returns the result of interpreting the object as an instance of 'Binding End Point'. |
T |
caseChoicePoint(ChoicePoint object)
Returns the result of interpreting the object as an instance of 'Choice Point'. |
T |
caseChoicepointTerminal(ChoicepointTerminal object)
Returns the result of interpreting the object as an instance of 'Choicepoint Terminal'. |
T |
caseContinuationTransition(ContinuationTransition object)
Returns the result of interpreting the object as an instance of 'Continuation Transition'. |
T |
caseCPBranchTransition(CPBranchTransition object)
Returns the result of interpreting the object as an instance of 'CP Branch Transition'. |
T |
caseDataClass(DataClass object)
Returns the result of interpreting the object as an instance of 'Data Class'. |
T |
caseDetailCode(DetailCode object)
Returns the result of interpreting the object as an instance of 'Detail Code'. |
T |
caseDocumentation(Documentation object)
Returns the result of interpreting the object as an instance of 'Documentation'. |
T |
caseEntryPoint(EntryPoint object)
Returns the result of interpreting the object as an instance of 'Entry Point'. |
T |
caseExitPoint(ExitPoint object)
Returns the result of interpreting the object as an instance of 'Exit Point'. |
T |
caseExternalPort(ExternalPort object)
Returns the result of interpreting the object as an instance of 'External Port'. |
T |
caseFreeType(FreeType object)
Returns the result of interpreting the object as an instance of 'Free Type'. |
T |
caseFreeTypedID(FreeTypedID object)
Returns the result of interpreting the object as an instance of 'Free Typed ID'. |
T |
caseGuard(Guard object)
Returns the result of interpreting the object as an instance of 'Guard'. |
T |
caseGuardedTransition(GuardedTransition object)
Returns the result of interpreting the object as an instance of 'Guarded Transition'. |
T |
caseImport(Import object)
Returns the result of interpreting the object as an instance of 'Import'. |
T |
caseInitialTransition(InitialTransition object)
Returns the result of interpreting the object as an instance of 'Initial Transition'. |
T |
caseInterfaceItem(InterfaceItem object)
Returns the result of interpreting the object as an instance of 'Interface Item'. |
T |
caseKeyValue(KeyValue object)
Returns the result of interpreting the object as an instance of 'Key Value'. |
T |
caseLayerConnection(LayerConnection object)
Returns the result of interpreting the object as an instance of 'Layer Connection'. |
T |
caseLogicalSystem(LogicalSystem object)
Returns the result of interpreting the object as an instance of 'Logical System'. |
T |
caseLogicalThread(LogicalThread object)
Returns the result of interpreting the object as an instance of 'Logical Thread'. |
T |
caseMessage(Message object)
Returns the result of interpreting the object as an instance of 'Message'. |
T |
caseMessageFromIf(MessageFromIf object)
Returns the result of interpreting the object as an instance of 'Message From If'. |
T |
caseMessageHandler(MessageHandler object)
Returns the result of interpreting the object as an instance of 'Message Handler'. |
T |
caseNonInitialTransition(NonInitialTransition object)
Returns the result of interpreting the object as an instance of 'Non Initial Transition'. |
T |
caseOperation(Operation object)
Returns the result of interpreting the object as an instance of 'Operation'. |
T |
casePlainStateGraph(PlainStateGraph object)
Returns the result of interpreting the object as an instance of 'Plain State Graph'. |
T |
casePort(Port object)
Returns the result of interpreting the object as an instance of 'Port'. |
T |
casePortClass(PortClass object)
Returns the result of interpreting the object as an instance of 'Port Class'. |
T |
caseProtocolClass(ProtocolClass object)
Returns the result of interpreting the object as an instance of 'Protocol Class'. |
T |
caseProtocolSemantics(ProtocolSemantics object)
Returns the result of interpreting the object as an instance of 'Protocol Semantics'. |
T |
caseRefinedState(RefinedState object)
Returns the result of interpreting the object as an instance of 'Refined State'. |
T |
caseRefSAPoint(RefSAPoint object)
Returns the result of interpreting the object as an instance of 'Ref SA Point'. |
T |
caseRelaySAPoint(RelaySAPoint object)
Returns the result of interpreting the object as an instance of 'Relay SA Point'. |
T |
caseRoomClass(RoomClass object)
Returns the result of interpreting the object as an instance of 'Class'. |
T |
caseRoomModel(RoomModel object)
Returns the result of interpreting the object as an instance of 'Model'. |
T |
caseSAPoint(SAPoint object)
Returns the result of interpreting the object as an instance of 'SA Point'. |
T |
caseSAPRef(SAPRef object)
Returns the result of interpreting the object as an instance of 'SAP Ref'. |
T |
caseSemanticsInRule(SemanticsInRule object)
Returns the result of interpreting the object as an instance of 'Semantics In Rule'. |
T |
caseSemanticsOutRule(SemanticsOutRule object)
Returns the result of interpreting the object as an instance of 'Semantics Out Rule'. |
T |
caseSemanticsRule(SemanticsRule object)
Returns the result of interpreting the object as an instance of 'Semantics Rule'. |
T |
caseServiceImplementation(ServiceImplementation object)
Returns the result of interpreting the object as an instance of 'Service Implementation'. |
T |
caseSPPoint(SPPoint object)
Returns the result of interpreting the object as an instance of 'SP Point'. |
T |
caseSPPRef(SPPRef object)
Returns the result of interpreting the object as an instance of 'SPP Ref'. |
T |
caseState(State object)
Returns the result of interpreting the object as an instance of 'State'. |
T |
caseStateGraph(StateGraph object)
Returns the result of interpreting the object as an instance of 'State Graph'. |
T |
caseStateGraphItem(StateGraphItem object)
Returns the result of interpreting the object as an instance of 'State Graph Item'. |
T |
caseStateGraphNode(StateGraphNode object)
Returns the result of interpreting the object as an instance of 'State Graph Node'. |
T |
caseStateMachine(StateMachine object)
Returns the result of interpreting the object as an instance of 'State Machine'. |
T |
caseStateTerminal(StateTerminal object)
Returns the result of interpreting the object as an instance of 'State Terminal'. |
T |
caseStructureClass(StructureClass object)
Returns the result of interpreting the object as an instance of 'Structure Class'. |
T |
caseSubStateTrPointTerminal(SubStateTrPointTerminal object)
Returns the result of interpreting the object as an instance of 'Sub State Tr Point Terminal'. |
T |
caseSubSystemClass(SubSystemClass object)
Returns the result of interpreting the object as an instance of 'Sub System Class'. |
T |
caseSubSystemRef(SubSystemRef object)
Returns the result of interpreting the object as an instance of 'Sub System Ref'. |
T |
caseTransition(Transition object)
Returns the result of interpreting the object as an instance of 'Transition'. |
T |
caseTransitionPoint(TransitionPoint object)
Returns the result of interpreting the object as an instance of 'Transition Point'. |
T |
caseTransitionTerminal(TransitionTerminal object)
Returns the result of interpreting the object as an instance of 'Transition Terminal'. |
T |
caseTrigger(Trigger object)
Returns the result of interpreting the object as an instance of 'Trigger'. |
T |
caseTriggeredTransition(TriggeredTransition object)
Returns the result of interpreting the object as an instance of 'Triggered Transition'. |
T |
caseTrPoint(TrPoint object)
Returns the result of interpreting the object as an instance of 'Tr Point'. |
T |
caseTrPointTerminal(TrPointTerminal object)
Returns the result of interpreting the object as an instance of 'Tr Point Terminal'. |
T |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type'. |
T |
caseTypedID(TypedID object)
Returns the result of interpreting the object as an instance of 'Typed ID'. |
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(int classifierID,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected boolean |
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static RoomPackage modelPackage
Constructor Detail |
---|
public RoomSwitch()
Method Detail |
---|
protected boolean isSwitchFor(EPackage ePackage)
protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseRoomModel(RoomModel object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRoomClass(RoomClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStructureClass(StructureClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorContainerClass(ActorContainerClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypedID(TypedID object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFreeTypedID(FreeTypedID object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBasicType(BasicType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseType(Type object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFreeType(FreeType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDataClass(DataClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAttribute(Attribute object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOperation(Operation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseProtocolClass(ProtocolClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMessage(Message object)
object
- the target of the switch.
doSwitch(EObject)
public T casePortClass(PortClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMessageHandler(MessageHandler object)
object
- the target of the switch.
doSwitch(EObject)
public T caseProtocolSemantics(ProtocolSemantics object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSemanticsRule(SemanticsRule object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSemanticsInRule(SemanticsInRule object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSemanticsOutRule(SemanticsOutRule object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorClass(ActorClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInterfaceItem(InterfaceItem object)
object
- the target of the switch.
doSwitch(EObject)
public T casePort(Port object)
object
- the target of the switch.
doSwitch(EObject)
public T caseExternalPort(ExternalPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSAPRef(SAPRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSPPRef(SPPRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseServiceImplementation(ServiceImplementation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLogicalSystem(LogicalSystem object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorContainerRef(ActorContainerRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSubSystemRef(SubSystemRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSubSystemClass(SubSystemClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLogicalThread(LogicalThread object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorInstancePath(ActorInstancePath object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBinding(Binding object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBindingEndPoint(BindingEndPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLayerConnection(LayerConnection object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSAPoint(SAPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRefSAPoint(RefSAPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRelaySAPoint(RelaySAPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSPPoint(SPPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorRef(ActorRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStateGraphNode(StateGraphNode object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStateGraphItem(StateGraphItem object)
object
- the target of the switch.
doSwitch(EObject)
public T caseState(State object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStateGraph(StateGraph object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStateMachine(StateMachine object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBaseState(BaseState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRefinedState(RefinedState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDetailCode(DetailCode object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTrPoint(TrPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTransitionPoint(TransitionPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEntryPoint(EntryPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseExitPoint(ExitPoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseChoicePoint(ChoicePoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTransition(Transition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNonInitialTransition(NonInitialTransition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInitialTransition(InitialTransition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContinuationTransition(ContinuationTransition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTriggeredTransition(TriggeredTransition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGuardedTransition(GuardedTransition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCPBranchTransition(CPBranchTransition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTransitionTerminal(TransitionTerminal object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStateTerminal(StateTerminal object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTrPointTerminal(TrPointTerminal object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSubStateTrPointTerminal(SubStateTrPointTerminal object)
object
- the target of the switch.
doSwitch(EObject)
public T caseChoicepointTerminal(ChoicepointTerminal object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTrigger(Trigger object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMessageFromIf(MessageFromIf object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGuard(Guard object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDocumentation(Documentation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnnotation(Annotation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKeyValue(KeyValue object)
object
- the target of the switch.
doSwitch(EObject)
public T caseImport(Import object)
object
- the target of the switch.
doSwitch(EObject)
public T casePlainStateGraph(PlainStateGraph object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(EObject object)
object
- the target of the switch.
#doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |