name.valery1707.jcommander.validators.io.ExistsDirectoryExecutable Maven / Gradle / Ivy
package name.valery1707.jcommander.validators.io;
import name.valery1707.jcommander.validators.ValueChecker;
import java.io.File;
public class ExistsDirectoryExecutable extends ValueChecker {
@Override
protected boolean check(File value) {
return value.exists() && value.isDirectory() && value.canExecute();
}
@Override
protected String error() {
return "be exists and executable directory";
}
}