public class ProjectConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<ConversionException> |
exception |
(package private) ProgressListener |
progressListener |
private RuleSet |
ruleSet |
Constructor and Description |
---|
ProjectConverter(int conversionType,
ProgressListener progressListener)
Ask for concrete matcher implementation depending on the conversion mode
Ask for user confirmation to convert the selected source directory if valid
Ask for user confirmation in case of number of files to convert > 1000
|
Modifier and Type | Method and Description |
---|---|
void |
addException(ConversionException exc) |
void |
convertProject(java.io.File folder) |
static void |
main(java.lang.String[] args) |
void |
printException() |
private void |
scanFile(java.io.File file)
Convert the specified file Read each line and ask matcher implementation
for conversion Rewrite the line returned by matcher
|
private void |
scanFileList(java.util.List<java.io.File> lstFiles)
Convert a list of files
|
private RuleSet ruleSet
private java.util.List<ConversionException> exception
ProgressListener progressListener
public ProjectConverter(int conversionType, ProgressListener progressListener)
conversionType
- progressListener
- public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void convertProject(java.io.File folder)
private void scanFileList(java.util.List<java.io.File> lstFiles)
lstFiles
- private void scanFile(java.io.File file)
file
- public void addException(ConversionException exc)
public void printException()