name.valery1707.jcommander.validators.io.ExistsFileWritable Maven / Gradle / Ivy
package name.valery1707.jcommander.validators.io;
import name.valery1707.jcommander.validators.ValueChecker;
import java.io.File;
public class ExistsFileWritable extends ValueChecker {
@Override
protected boolean check(File value) {
return value.exists() && value.isFile() && value.canWrite();
}
@Override
protected String error() {
return "be exists and writable file";
}
}