All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carrotsearch.console.jcommander.IParameterValidator2 Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
/*
 * console-tools
 *
 * Copyright (C) 2019, Carrot Search s.c.
 * All rights reserved.
 */
package com.carrotsearch.console.jcommander;

public interface IParameterValidator2 extends IParameterValidator {

  /**
   * Validate the parameter.
   *
   * @param name The name of the parameter (e.g. "-host").
   * @param value The value of the parameter that we need to validate
   * @param pd The description of this parameter
   * @throws ParameterException Thrown if the value of the parameter is invalid.
   */
  void validate(String name, String value, ParameterDescription pd) throws ParameterException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy