1 28 29 package org.objectweb.openccm.uml.transformation.ast; 30 31 import ispuml.mdaTransformation.RuleContext; 32 import ispuml.mdaTransformation.TransformationException; 33 import ispuml.mdaTransformation.ActionBase; 34 import ispuml.mdaTransformation.rules.xml.CompositeXmlAction; 35 36 37 41 public class CallCreateMethod extends CompositeXmlAction { 42 43 46 public CallCreateMethod() { 47 isSrcPropertyRequired = false; 50 isDstPropertyRequired = false; 51 action = new TransformAction(); 52 } 53 54 57 class TransformAction extends ActionBase { 58 63 public Object execute(Object bean, RuleContext request) throws TransformationException { 64 Object obj = request.getAttribute("declaration"); 65 org.objectweb.openccm.ast.api.Declaration declaration; 66 declaration = (org.objectweb.openccm.ast.api.Declaration) obj; 67 declaration.create(); 68 return declaration; 70 } 71 72 } } 74 | Popular Tags |