01: package org.andromda.metafacades.emf.uml2;
02:
03: import org.eclipse.uml2.Element;
04: import org.eclipse.uml2.StateMachine;
05:
06: /**
07: * MetafacadeLogic implementation for
08: * org.andromda.metafacades.uml.PartitionFacade.
09: *
10: * @see org.andromda.metafacades.uml.PartitionFacade
11: */
12: public class PartitionFacadeLogicImpl extends PartitionFacadeLogic {
13: public PartitionFacadeLogicImpl(
14: final org.eclipse.uml2.Region metaObject,
15: final String context) {
16: super (metaObject, context);
17: }
18:
19: /**
20: * @see org.andromda.metafacades.uml.PartitionFacade#getActivityGraph()
21: */
22: protected java.lang.Object handleGetActivityGraph() {
23: Element owner = this .metaObject.getOwner();
24: if (owner instanceof StateMachine) {
25: return owner;
26: }
27: return null;
28: }
29:
30: /**
31: * @see org.andromda.metafacades.uml.PartitionFacade#getVertices()
32: */
33: protected java.util.Collection handleGetVertices() {
34: return this.metaObject.getSubvertices();
35: }
36: }
|