Package com.beust.jcommander.validators
Class NoValueValidator<T>
- java.lang.Object
-
- com.beust.jcommander.validators.NoValueValidator<T>
-
- All Implemented Interfaces:
IValueValidator<T>
public class NoValueValidator<T> extends java.lang.Object implements IValueValidator<T>
This is the default value of the validateValueWith attribute.
-
-
Constructor Summary
Constructors Constructor Description NoValueValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(java.lang.String parameterName, T parameterValue)Validate the parameter.
-
-
-
Method Detail
-
validate
public void validate(java.lang.String parameterName, T parameterValue) throws ParameterExceptionDescription copied from interface:IValueValidatorValidate the parameter.- Specified by:
validatein interfaceIValueValidator<T>- 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.
-
-