Top Methods
com.beust.jcommander

public Interface IValueValidator<T>

Known Direct Implementers
com.beust.jcommander.validators.NoValueValidator

Method Summary

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

Validate the parameter.

Method Detail

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

Validate the parameter.

Parameters
name:String

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

value:T

The value of the parameter that we need to validate

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