IParameterValidatorpublic class PositiveInteger extends Object implements IParameterValidator
| Constructor | Description |
|---|---|
PositiveInteger() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
validate(String name,
String value) |
Validate the parameter.
|
public void validate(String name, String value) throws ParameterException
IParameterValidatorvalidate in interface IParameterValidatorname - The name of the parameter (e.g. "-host").value - The value of the parameter that we need to validateParameterException - Thrown if the value of the parameter is invalid.