Top Description Constructors Methods
com.beust.jcommander.validators

public Class NoValidator

extends Object
implements IParameterValidator
Class Inheritance
All Implemented Interfaces
com.beust.jcommander.IParameterValidator
Imports
com.beust.jcommander.IParameterValidator, .ParameterException

This is the default value of the validateWith 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
,
String
The value of the parameter that we need to validate
parameterValue
)

Implements com.beust.jcommander.IParameterValidator.validate.

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

Constructor Detail

NoValidatorback to summary
public NoValidator()

Method Detail

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

Implements com.beust.jcommander.IParameterValidator.validate.

Doc from com.beust.jcommander.IParameterValidator.validate.

Validate the parameter.

Parameters
parameterName:String

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

parameterValue:String

The value of the parameter that we need to validate

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