public class PositiveInteger extends Object implements IParameterValidator
Constructor and Description |
---|
PositiveInteger() |
Modifier and Type | Method and Description |
---|---|
void |
validate(String name,
String value)
Validate the parameter.
|
public void validate(String name, String value) throws ParameterException
IParameterValidator
validate
in interface IParameterValidator
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.Copyright © 2017. All rights reserved.