All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.impex.ImpExCatalog Maven / Gradle / Ivy

The newest version!
package cdc.impex;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import cdc.impex.exports.SheetExporter;
import cdc.impex.exports.WorkbookExporter;
import cdc.impex.imports.SheetImporter;
import cdc.impex.imports.WorkbookImporter;
import cdc.impex.templates.SheetTemplate;
import cdc.util.lang.Checks;
import cdc.util.lang.NotFoundException;

/**
 * Catalog of {@link SheetTemplate}s and {@link SheetImporter}s.
 *
 * @author Damien Carbonne
 */
public class ImpExCatalog {
    private static final String TEMPLATE = "template";
    private static final String TEMPLATES = "templates";
    private static final String TEMPLATE_NAME = "templateName";
    private static final String TEMPLATE_NAMES = "templateNames";
    private static final String SHEET_EXPORTER = "sheetExporter";
    private static final String SHEET_IMPORTER = "sheetImporter";

    /**
     * Map of (domain name, Set