Patent ID: 9710235
Date: 2017-07-18
CPC Classifications: G06F

Claim:
1. A method for generating code, comprising: detecting, via a processor, a selected UML model element; detecting, via the processor, a copy operation corresponding to the selected UML model element; detecting, via the processor, a selected copy option associated with the copy operation, wherein the selected copy option indicates that a reference, an attribute, and a subset of sub-elements of a plurality of sub-elements associated with the selected UML model element are to he copied, wherein the attribute indicates a maximum number of permitted instantiations of a class in the selected UML model element, and wherein the selected copy option further indicates that a foreach function is to he generated for the subset of sub-elements; and generating software code based on the copy option, wherein the software code comprises the foreach function, and wherein the foreach function is executed for only the subset of sub-elements.