private <T> void prepare( DataModelDefinition<T> definition, ExporterDescription desctipion, URI source) throws IOException { assert definition != null; assert desctipion != null; assert source != null; ModelOutput<T> output = exporters.createOutput(definition, desctipion, context); prepare(definition, output, source); }
private <T> void prepare( DataModelDefinition<T> definition, ImporterDescription desctipion, URI source) throws IOException { assert definition != null; assert desctipion != null; assert source != null; ModelOutput<T> output = importers.createOutput(definition, desctipion, context); prepare(definition, output, source); }
/** * Prepares the target importer's input using the specified source. * @param type class of data model * @param description target importer * @param source test data * @throws IOException if failed to prepare the importer * @throws IllegalArgumentException if some parameters were {@code null} */ public void prepare(Class<?> type, ImporterDescription description, URI source) throws IOException { if (type == null) { throw new IllegalArgumentException("type must not be null"); //$NON-NLS-1$ } if (description == null) { throw new IllegalArgumentException("description must not be null"); //$NON-NLS-1$ } if (source == null) { throw new IllegalArgumentException("source must not be null"); //$NON-NLS-1$ } DataModelDefinition<?> definition = findDefinition(type); prepare(definition, description, source); }
/** * Prepares the target exporter's output using the specified source. * @param type class of data model * @param description target importer * @param source test data * @throws IOException if failed to prepare the importer * @throws IllegalArgumentException if some parameters were {@code null} */ public void prepare(Class<?> type, ExporterDescription description, URI source) throws IOException { if (type == null) { throw new IllegalArgumentException("type must not be null"); //$NON-NLS-1$ } if (description == null) { throw new IllegalArgumentException("description must not be null"); //$NON-NLS-1$ } if (source == null) { throw new IllegalArgumentException("source must not be null"); //$NON-NLS-1$ } DataModelDefinition<?> definition = findDefinition(type); prepare(definition, description, source); }