01: package org.andromda.metafacades.uml14;
02:
03: import org.omg.uml.foundation.datatypes.BooleanExpression;
04:
05: /**
06: * MetafacadeLogic implementation.
07: *
08: * @see org.andromda.metafacades.uml.GuardFacade
09: */
10: public class GuardFacadeLogicImpl extends GuardFacadeLogic {
11:
12: public GuardFacadeLogicImpl(
13: org.omg.uml.behavioralelements.statemachines.Guard metaObject,
14: java.lang.String context) {
15: super (metaObject, context);
16: }
17:
18: protected Object handleGetTransition() {
19: return metaObject.getTransition();
20: }
21:
22: protected String handleGetBody() {
23: final BooleanExpression expression = metaObject.getExpression();
24: return (expression == null) ? null : expression.getBody();
25: }
26:
27: public Object getValidationOwner() {
28: return getTransition();
29: }
30: }
|