compbio.engine.client
Class PathValidator
java.lang.Object
compbio.engine.client.PathValidator
public final class PathValidator
- extends Object
PathValidator
public PathValidator()
isValidExecutable
public static boolean isValidExecutable(String command)
validateExecutable
public static void validateExecutable(String command)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
isValidDirectory
public static boolean isValidDirectory(String directory)
validatePathNames
public static void validatePathNames(List<String> filenames,
String type)
throws IllegalArgumentException
- Parameters:
filenames
- type
- - merely a string to be added to error message to explain what
type of files are lacking
- Throws:
IllegalArgumentException
isAbsolutePath
public static boolean isAbsolutePath(String path)
- Whether a certain path is absolute or not is operation system dependent!
- Parameters:
path
-
- Returns:
- true is the path is absolute, false otherwise
validateDirectory
public static void validateDirectory(String workDirectory)
throws IllegalArgumentException
- Throws:
IllegalArgumentException