org.andromda.core.common
Class ImportBeautifierPostProcessorImpl

java.lang.Object
  extended by org.andromda.core.common.ImportBeautifierPostProcessorImpl
All Implemented Interfaces:
PostProcessor

public class ImportBeautifierPostProcessorImpl
extends Object
implements PostProcessor

Implementation of PostProcessor interface to organize imports in java files

Author:
Plushnikov Michail

Constructor Summary
ImportBeautifierPostProcessorImpl()
           
 
Method Summary
 boolean acceptFile(File pFile)
          Determines if this file should be postprocessed in current postprocessor
 String postProcess(String pSource, String pPreviousData)
          Postprocess the source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportBeautifierPostProcessorImpl

public ImportBeautifierPostProcessorImpl()
Method Detail

acceptFile

public boolean acceptFile(File pFile)
Determines if this file should be postprocessed in current postprocessor

Specified by:
acceptFile in interface PostProcessor
Parameters:
pFile - file for postprocessing
Returns:
true if postprocessing should be done, false sonst

postProcess

public String postProcess(String pSource,
                          String pPreviousData)
                   throws Exception
Postprocess the source

Specified by:
postProcess in interface PostProcessor
Parameters:
pSource - the Source for postprocessing
pPreviousData - the Source of existing file, may be null or empty
Returns:
postprocessed source
Throws:
Exception - on errors occurred


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.