use of eu.esdihumboldt.hale.common.core.io.project.extension.ProjectFileFactory in project hale by halestudio.
the class ProjectIO method createDefaultProjectFiles.
/**
* Create a set of default project files for use with {@link ProjectReader}
* and {@link ProjectWriter}
*
* @param serviceProvider the service provider to use for eventual I/O
* advisors created
* @return the default project files
*/
public static Map<String, ProjectFile> createDefaultProjectFiles(ServiceProvider serviceProvider) {
Map<String, ProjectFile> result = new HashMap<String, ProjectFile>();
Collection<ProjectFileFactory> elements = new ProjectFileExtension(serviceProvider).getElements();
for (ProjectFileFactory element : elements) {
result.put(element.getId(), element.createProjectFile());
}
return result;
}
Aggregations