Class StringParam

All Implemented Interfaces:
OneArgParam, Param

public class StringParam extends BasicOneArgParam<String>
  • Constructor Details

  • Method Details

    • convertArg

      protected String convertArg(String param, String argument) throws Exception
      Description copied from class: BasicOneArgParam
      A conversion method to get a T from a string. All subclasses must define this for the type they handle.
      Specified by:
      convertArg in class BasicOneArgParam<String>
      Parameters:
      param - the name of the parameter found on the command line. In some cases it might affect conversion, but it is also good for error messages.
      argument - the argument to convert to a type T.
      Returns:
      the converted argument.
      Throws:
      Exception - if there is a problem with the conversion.