Top Description Constructors Methods
com.beust.jcommander.validators

public Class NoValueValidator<T>

extends Object
implements IValueValidator<T>
Class Inheritance
All Implemented Interfaces
com.beust.jcommander.IValueValidator
Imports
com.beust.jcommander.IValueValidator, .ParameterException

This is the default value of the validateValueWith attribute.
Author
Cedric Beust <[email protected]>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
validate(String
The name of the parameter (e.g. "-host").
parameterName
,
T
The value of the parameter that we need to validate
parameterValue
)

Implements com.beust.jcommander.IValueValidator.validate.

Validate the parameter.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NoValueValidatorback to summary
public NoValueValidator()

Method Detail

validateback to summary
public void validate(String parameterName, T parameterValue) throws ParameterException

Implements com.beust.jcommander.IValueValidator.validate.

Doc from com.beust.jcommander.IValueValidator.validate.

Validate the parameter.

Parameters
parameterName:String

The name of the parameter (e.g. "-host").

parameterValue:T

The value of the parameter that we need to validate

Exceptions
ParameterException:
Thrown if the value of the parameter is invalid.