public IComponentSpec exportCSpec(CSpec cspc) { cspec = cspc; xmlSpec = (ComponentSpecImpl) ICSpecXMLFactory.eINSTANCE.createComponentSpec(); xmlSpec.setName(cspc.getId()); xmlSpec.setComponentType(cspc.getType()); xmlSpec.setVersion(cspc.getVersion()); xmlSpec.setDocumentation(cspc.getDocumentation()); xmlSpec.setFilter(cspc.getFilter()); xmlSpec.setShortDesc(cspc.getShortDesc()); xmlSpec.setProjectInfo(cspc.getProjectInfo()); copyDependencies(); copyGenerators(); copyAttributes(); return xmlSpec; }