Class FileUtil


  • public class FileUtil
    extends Object
    • Field Detail

      • LOGGER

        protected static final org.apache.log4j.Logger LOGGER
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • getFolder

        public static File getFolder​(String path)
        Get the reconfiguration rule folder. FIXME: Remove this and load reconfiguration rules into a blackboard.
        Parameters:
        path - String to the reconfiguration rules
        Returns:
        folder of the QVTo reconfiguration rules
      • getFiles

        public static File[] getFiles​(File folder,
                                      String fileExtension)
        Get the reconfiguration rule files. FIXME: Remove this and load reconfiguration rules into a blackboard.
        Parameters:
        folder - Filepath to the reconfiguration rules
        Returns:
        folder of the QVTo reconfiguration rules
      • getQvtoFiles

        public static URI[] getQvtoFiles​(String path)
        Gets the QVTO files within the specified path.
        Parameters:
        path - Path to reconfiguration rules.
        Returns:
        The URIs to all QVTO files found in the folder indicated by the given path. Returns an empty array in case no files are found, or in case path == null || path.isEmpty().