1 28 29 package org.objectweb.openccm.uml.transformation.ast; 30 31 import org.objectweb.openccm.ast.api.Scope; 32 33 import ispuml.mdaTransformation.RuleContext; 34 import ispuml.mdaTransformation.TransformationException; 35 import ispuml.mdaTransformation.ActionBase; 36 import ispuml.mdaTransformation.rules.xml.CompositeXmlAction; 37 38 39 42 public class PushCurrentScope extends CompositeXmlAction { 43 44 47 public PushCurrentScope() { 48 isSrcPropertyRequired = false; 51 isDstPropertyRequired = false; 52 action = new TransformAction(); 53 } 54 55 58 class TransformAction extends ActionBase { 59 64 public Object execute(Object bean, RuleContext request) throws TransformationException { 65 Scope scope = (Scope)request.getAttribute("scope"); 66 Scopes.pushScope(scope); 67 return null; 68 } 69 70 } } 72 | Popular Tags |