Top Description Methods
com.beust.jcommander

public Interface IParameterValidator

Known Direct Subinterfaces
com.beust.jcommander.IParameterValidator2
Known Direct Implementers
com.beust.jcommander.validators.NoValidator, com.beust.jcommander.validators.PositiveInteger

The class used to validate parameters.
Author
Cedric Beust <[email protected]>

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
)

Validate the parameter.

Method Detail

validateback to summary
public void validate(String name, String value) 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

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