1 package org.andromda.core.common; 2 3 import java.io.File; 4 5 /** 6 * Interface for all PostProcessor 7 * @author Plushnikov Michail 8 */ 9 public interface PostProcessor 10 { 11 /** 12 * Determines if this file should be postprocessed in current postprocessor 13 * @param pFile file for postprocessing 14 * @return true if postprocessing should be done, false sonst 15 */ 16 public boolean acceptFile(File pFile); 17 18 /** 19 * Postprocess the source 20 * @param pSource the Source for postprocessing 21 * @param pPreviousData the Source of existing file, may be null or empty 22 * @return postprocessed source 23 * @throws Exception on errors occurred 24 */ 25 public String postProcess(String pSource, String pPreviousData) throws Exception; 26 }