public class PositiveInteger extends java.lang.Object implements IParameterValidator
| Constructor and Description |
|---|
PositiveInteger() |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(java.lang.String name,
java.lang.String value)
Validate the parameter.
|
public void validate(java.lang.String name,
java.lang.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.