Class ReadFileValueValidator

java.lang.Object
kieker.tools.settings.validators.ReadFileValueValidator
All Implemented Interfaces:
com.beust.jcommander.IValueValidator<java.nio.file.Path>

public class ReadFileValueValidator
extends java.lang.Object
implements com.beust.jcommander.IValueValidator<java.nio.file.Path>
Evaluate whether the path exists and the file is readable.
Since:
2.0.0
Author:
Reiner Jung
  • Constructor Summary

    Constructors 
    Constructor Description
    ReadFileValueValidator()  
  • Method Summary

    Modifier and Type Method Description
    void validate​(java.lang.String name, java.nio.file.Path path)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • validate

      public void validate​(java.lang.String name, java.nio.file.Path path) throws com.beust.jcommander.ParameterException
      Specified by:
      validate in interface com.beust.jcommander.IValueValidator<java.nio.file.Path>
      Throws:
      com.beust.jcommander.ParameterException