Package com.beust.jcommander.validators
Class NoValidator
- java.lang.Object
-
- com.beust.jcommander.validators.NoValidator
-
- All Implemented Interfaces:
IParameterValidator
public class NoValidator extends java.lang.Object implements IParameterValidator
This is the default value of the validateWith attribute.
-
-
Constructor Summary
Constructors Constructor Description NoValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(java.lang.String parameterName, java.lang.String parameterValue)
Validate the parameter.
-
-
-
Method Detail
-
validate
public void validate(java.lang.String parameterName, java.lang.String parameterValue) throws ParameterException
Description copied from interface:IParameterValidator
Validate the parameter.- Specified by:
validate
in interfaceIParameterValidator
- Parameters:
parameterName
- The name of the parameter (e.g. "-host").parameterValue
- The value of the parameter that we need to validate- Throws:
ParameterException
- Thrown if the value of the parameter is invalid.
-
-