• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.beust.jcommander;
2 
3 public interface IValueValidator<T> {
4   /**
5    * Validate the parameter.
6    *
7    * @param name The name of the parameter (e.g. "-host").
8    * @param value The value of the parameter that we need to validate
9    *
10    * @throws ParameterException Thrown if the value of the parameter is invalid.
11    */
validate(String name, T value)12   void validate(String name, T value) throws ParameterException;
13 
14 }
15