IParameterValidator2
NoValidator
, PositiveInteger
public interface IParameterValidator
Modifier and Type | Method | Description |
---|---|---|
void |
validate(String name,
String value) |
Validate the parameter.
|
void validate(String name, String value) throws ParameterException
name
- 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.