Package org.verapdf.cli.commands
Class VeraCliArgParser.FileValidator
java.lang.Object
org.verapdf.cli.commands.VeraCliArgParser.FileValidator
- All Implemented Interfaces:
IParameterValidator
- Enclosing class:
- VeraCliArgParser
public static final class VeraCliArgParser.FileValidator
extends Object
implements IParameterValidator
JCommander parameter validator for
File, see
IParameterValidator. Enforces an existing, readable file.- Author:
- Carl Wilson
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileValidator
public FileValidator()
-
-
Method Details
-
validate
{ @inheritDoc }- Specified by:
validatein interfaceIParameterValidator- Parameters:
name- The name of the parameter (e.g. "-host").value- The value of the parameter that we need to validate- Throws:
ParameterException- Thrown if the value of the parameter is invalid.
-