MappingHelper mappingHelper = new MappingHelper(model);
ImplementableTypeMapping typeMapping = styleMapping
.getImplementableTypeMapping(archElem.getStyleType());
ImplementableArchitectureElementMapping archElemMapping = archMapping.getComponentOrConnectorMappingByName(archElem
.getName());
if (archElemMapping != null) {
for (ClassDefinition classDef : archElemMapping
.getClassDefinition()) {
generateClass(classDef, typeMapping, mappingHelper, archElem, archElemMapping);
}
for (FileDefinition fileDef : archElemMapping.getFileDefinition()) {
String pkg = mappingHelper.getPackageOfImplementationArtifact(fileDef);
String filename = mappingHelper.getFilename(fileDef);
String template = mappingHelper.getTemplateTextForFile(fileDef);
CodeGenerationHelper.createFile(pkg, filename, template, javaProject);
}
for (InterfaceDefinition intDef : archElemMapping.getInterfaceDefinition()) {
generateInterface(intDef, mappingHelper, typeMapping);
}
}
if (monitor.isCanceled()) {