Top Methods
com.beust.jcommander

public Interface IParameterValidator2

extends IParameterValidator

Method Summary

Modifier and TypeMethod and Description
public void
validate(String
The name of the parameter (e.g. "-host").
name
,
String
The value of the parameter that we need to validate
value
,
ParameterDescription
The description of this parameter
pd
)

Validate the parameter.

Inherited from com.beust.jcommander.IParameterValidator:
validate

Method Detail

validateback to summary
public void validate(String name, String value, ParameterDescription pd) throws ParameterException

Validate the parameter.

Parameters
name:String

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

value:String

The value of the parameter that we need to validate

pd:ParameterDescription

The description of this parameter

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