Class DirectoryCheckResult
java.lang.Object
net.adoptopenjdk.icedteaweb.validator.DirectoryCheckResult
Is storing result of directory validation.
validated are existence of directory whether it is directory if it have read/write permissions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intbooleanToInt(boolean b) intcount failures of this result (0-3, both inclusive).Convert results to string.intcount passes of this result (0-3, both inclusive).static Stringstatic StringtoString()static String
-
Field Details
-
exists
public boolean exists -
isDir
public boolean isDir -
correctPermissions
public boolean correctPermissions -
subDir
-
testedDir
-
-
Constructor Details
-
DirectoryCheckResult
-
-
Method Details
-
notExistsMessage
-
notDirMessage
-
wrongPermissionsMessage
-
booleanToInt
private static int booleanToInt(boolean b) -
getPasses
public int getPasses()count passes of this result (0-3, both inclusive).- Returns:
- how many times it passed
-
getFailures
public int getFailures()count failures of this result (0-3, both inclusive).- Returns:
- how many failures appeared
-
getMessage
Convert results to string. Each failure by line. PAsses are not mentioned The subdirectory (and it subdirectories are included to )- Returns:
- string with \n, or/and ended by \n
-
toString
-