01: package org.andromda.metafacades.uml14;
02:
03: import org.omg.uml.behavioralelements.statemachines.CompositeState;
04: import org.omg.uml.behavioralelements.statemachines.StateMachine;
05:
06: /**
07: * Metaclass facade implementation.
08: */
09: public class ObjectFlowStateFacadeLogicImpl extends
10: ObjectFlowStateFacadeLogic {
11: public ObjectFlowStateFacadeLogicImpl(
12: org.omg.uml.behavioralelements.activitygraphs.ObjectFlowState metaObject,
13: String context) {
14: super (metaObject, context);
15: }
16:
17: protected Object handleGetStateMachine() {
18: StateMachine stateMachine = null;
19: CompositeState compositeState = metaObject.getContainer();
20:
21: if (compositeState != null) {
22: while (compositeState != null) {
23: stateMachine = compositeState.getStateMachine();
24: compositeState = compositeState.getContainer();
25: }
26: }
27:
28: return stateMachine;
29: }
30:
31: protected Object handleGetType() {
32: return metaObject.getType();
33: }
34: }
|