
package de.ivu.elect.exchange;

import java.io.InputStream;

import de.ivu.elect.business.exchange.control.FileKonfiguration;
import de.ivu.elect.business.exchange.control.MappingException;
import de.ivu.elect.jee.exchange.Violations;

public interface ImportMapper<T, C> extends ExchangeMapper<C> {

  T deserialize(InputStream is, C context, FileKonfiguration fileKonfiguration) throws MappingException;

  /**
   * Ermittelt Verletzungen der Eingabedaten am vorgeschriebenen Format (bspw. XML-Schema-Validierung).
   */
  Violations validateInputFormat(InputStream is, C context, FileKonfiguration fileKonfiguration);
}
