Class ProjectConverter


  • public class ProjectConverter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProjectConverter

        public 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
        Parameters:
        conversionType -
        progressListener -
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • convertProject

        public void convertProject​(java.io.File folder)
      • scanFileList

        private void scanFileList​(java.util.List<java.io.File> lstFiles)
        Convert a list of files
        Parameters:
        lstFiles -
      • scanFile

        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
        Parameters:
        file -
      • printException

        public void printException()