Package cdc.util.cli

Interface AbstractMainSupport.ValueChecker<T>

Type Parameters:
T - The value type.
Enclosing class:
AbstractMainSupport<A,R>

public static interface AbstractMainSupport.ValueChecker<T>
Interface used to check the validity of an option value.
  • Method Summary

    Modifier and Type
    Method
    Description
    check(org.apache.commons.cli.CommandLine cl, String opt, T value)
    Checks the validity of a value and returns it or throws an exception.
  • Method Details

    • check

      T check(org.apache.commons.cli.CommandLine cl, String opt, T value) throws org.apache.commons.cli.ParseException
      Checks the validity of a value and returns it or throws an exception.
      Parameters:
      cl - The command line.
      opt - The option name.
      value - The value to check.
      Returns:
      the input value.
      Throws:
      org.apache.commons.cli.ParseException - When value is invalid.