Class FileUtil
- java.lang.Object
-
- org.palladiosimulator.simulizar.utils.FileUtil
-
public class FileUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File[]
getFiles(File folder, String fileExtension)
Get the reconfiguration rule files.static File
getFolder(String path)
Get the reconfiguration rule folder.static URI[]
getQvtoFiles(String path)
Gets the QVTO files within the specified path.
-
-
-
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
URI
s 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 casepath == null || path.isEmpty()
.
-
-