@Override public void populate( fUML.Syntax.Classes.Kernel.Element fumlElement, org.modelexecution.fuml.Syntax.Classes.Kernel.Element fumlElement_, ConversionResultImpl result) { if (!(fumlElement_ instanceof org.modelexecution.fuml.Syntax.Classes.Kernel.Operation) || !(fumlElement instanceof fUML.Syntax.Classes.Kernel.Operation)) { return; } fUML.Syntax.Classes.Kernel.Operation fumlNamedElement = (fUML.Syntax.Classes.Kernel.Operation) fumlElement; org.modelexecution.fuml.Syntax.Classes.Kernel.Operation fumlNamedElement_ = (org.modelexecution.fuml.Syntax.Classes.Kernel.Operation) fumlElement_; fumlNamedElement.isQuery = fumlNamedElement_.isQuery(); fumlNamedElement.isOrdered = fumlNamedElement_.isOrdered(); fumlNamedElement.isUnique = fumlNamedElement_.isUnique(); fumlNamedElement.lower = fumlNamedElement_.getLower(); fumlNamedElement.upper.naturalValue = fumlNamedElement_.getUpper(); fumlNamedElement.class_ = (fUML.Syntax.Classes.Kernel.Class_) result.getFUMLElement(fumlNamedElement_.getClass()); for (org.modelexecution.fuml.Syntax.Classes.Kernel.Operation value : fumlNamedElement_.getRedefinedOperation()) { fumlNamedElement.redefinedOperation.add( (fUML.Syntax.Classes.Kernel.Operation) result.getFUMLElement(value)); } fumlNamedElement.type = (fUML.Syntax.Classes.Kernel.Type) result.getFUMLElement(fumlNamedElement_.getType()); }
@Override public void populate( fUML.Syntax.Classes.Kernel.Element fumlElement, org.eclipse.emf.ecore.EModelElement element, ConversionResultImpl result) { if (!(element instanceof org.modelexecution.xmof.Syntax.Activities.IntermediateActivities.ActivityNode) || !(fumlElement instanceof fUML.Syntax.Activities.IntermediateActivities.ActivityNode)) { return; } fUML.Syntax.Activities.IntermediateActivities.ActivityNode fumlNamedElement = (fUML.Syntax.Activities.IntermediateActivities.ActivityNode) fumlElement; org.modelexecution.xmof.Syntax.Activities.IntermediateActivities.ActivityNode xmofElement = (org.modelexecution.xmof.Syntax.Activities.IntermediateActivities.ActivityNode) element; fumlNamedElement.inStructuredNode = (fUML.Syntax.Activities.CompleteStructuredActivities.StructuredActivityNode) result.getFUMLElement(xmofElement.getInStructuredNode()); fumlNamedElement.activity = (fUML.Syntax.Activities.IntermediateActivities.Activity) result.getFUMLElement(xmofElement.getActivity()); for (org.modelexecution.xmof.Syntax.Activities.IntermediateActivities.ActivityEdge value : xmofElement.getOutgoing()) { fumlNamedElement.outgoing.add( (fUML.Syntax.Activities.IntermediateActivities.ActivityEdge) result.getFUMLElement(value)); } for (org.modelexecution.xmof.Syntax.Activities.IntermediateActivities.ActivityEdge value : xmofElement.getIncoming()) { fumlNamedElement.incoming.add( (fUML.Syntax.Activities.IntermediateActivities.ActivityEdge) result.getFUMLElement(value)); } }
@Override public void populate( fUML.Syntax.Classes.Kernel.Element fumlElement, org.eclipse.uml2.uml.Element uml2Element, ConversionResultImpl result) { if (!(uml2Element instanceof org.eclipse.uml2.uml.ActivityParameterNode) || !(fumlElement instanceof fUML.Syntax.Activities.IntermediateActivities.ActivityParameterNode)) { return; } fUML.Syntax.Activities.IntermediateActivities.ActivityParameterNode fumlNamedElement = (fUML.Syntax.Activities.IntermediateActivities.ActivityParameterNode) fumlElement; org.eclipse.uml2.uml.ActivityParameterNode uml2NamedElement = (org.eclipse.uml2.uml.ActivityParameterNode) uml2Element; fumlNamedElement.parameter = (fUML.Syntax.Classes.Kernel.Parameter) result.getFUMLElement(uml2NamedElement.getParameter()); }
@Override public void populate( fUML.Syntax.Classes.Kernel.Element fumlElement, org.eclipse.emf.ecore.EModelElement element, ConversionResultImpl result) { if (!(element instanceof org.modelexecution.xmof.Syntax.Actions.CompleteActions.StartObjectBehaviorAction) || !(fumlElement instanceof fUML.Syntax.Actions.CompleteActions.StartObjectBehaviorAction)) { return; } fUML.Syntax.Actions.CompleteActions.StartObjectBehaviorAction fumlNamedElement = (fUML.Syntax.Actions.CompleteActions.StartObjectBehaviorAction) fumlElement; org.modelexecution.xmof.Syntax.Actions.CompleteActions.StartObjectBehaviorAction xmofElement = (org.modelexecution.xmof.Syntax.Actions.CompleteActions.StartObjectBehaviorAction) element; fumlNamedElement.object = (fUML.Syntax.Actions.BasicActions.InputPin) result.getFUMLElement(xmofElement.getObject()); }