Search in sources :

Example 1 with ProjectFileExtension

use of eu.esdihumboldt.hale.common.core.io.project.extension.ProjectFileExtension 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;
}
Also used : ProjectFileFactory(eu.esdihumboldt.hale.common.core.io.project.extension.ProjectFileFactory) HashMap(java.util.HashMap) ProjectFile(eu.esdihumboldt.hale.common.core.io.project.model.ProjectFile) ProjectFileExtension(eu.esdihumboldt.hale.common.core.io.project.extension.ProjectFileExtension)

Aggregations

ProjectFileExtension (eu.esdihumboldt.hale.common.core.io.project.extension.ProjectFileExtension)1 ProjectFileFactory (eu.esdihumboldt.hale.common.core.io.project.extension.ProjectFileFactory)1 ProjectFile (eu.esdihumboldt.hale.common.core.io.project.model.ProjectFile)1 HashMap (java.util.HashMap)1