org.andromda.core.common
Class ImportBeautifierPostProcessorImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportBeautifierPostProcessorImpl
public ImportBeautifierPostProcessorImpl()
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 postprocessingpPreviousData - 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.