compbio.engine.client
Class PathValidator
java.lang.Object
compbio.engine.client.PathValidator
public final class PathValidator
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathValidator
public PathValidator()
isValidExecutable
public static boolean isValidExecutable(java.lang.String command)
validateExecutable
public static void validateExecutable(java.lang.String command)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
isValidDirectory
public static boolean isValidDirectory(java.lang.String directory)
validatePathNames
public static void validatePathNames(java.util.List<java.lang.String> filenames,
java.lang.String type)
throws java.lang.IllegalArgumentException
- Parameters:
filenames
- type
- - merely a string to be added to error message to explain what
type of files are lacking
- Throws:
java.lang.IllegalArgumentException
isAbsolutePath
public static boolean isAbsolutePath(java.lang.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(java.lang.String workDirectory)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException