package eu.dnetlib.dlms.benchmark;

import org.dom4j.Document;

/**
 * Interface for classes that process xml files. It provides three methods for custom initialization (init), processing
 * (process) and post-processing (end).
 * 
 * @author lexis
 */
public interface ProcessXMLInterface {

	/**
	 * Initialization.
	 */
	void init();

	/**
	 * Method that works with the given document.
	 * 
	 * @param doc
	 *            Document to work with
	 */
	void process(Document doc);

	/**
	 * Operations to execute after processing.
	 */
	void end();
}
