|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beust.jcommander.validators.PositiveInteger
public class PositiveInteger
A validator that makes sure the value of the parameter is a positive integer.
| Constructor Summary | |
|---|---|
PositiveInteger()
|
|
| Method Summary | |
|---|---|
void |
validate(java.lang.String name,
java.lang.String value)
Validate the parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositiveInteger()
| Method Detail |
|---|
public void validate(java.lang.String name,
java.lang.String value)
throws ParameterException
IParameterValidator
validate in interface IParameterValidatorname - The name of the parameter (e.g. "-host").value - The value of the parameter that we need to validate
ParameterException - Thrown if the value of the parameter is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||