org.apache.commons.cli2.validation
Interface Validator
- All Known Implementing Classes:
- ClassValidator, DateValidator, EnumValidator, FileValidator, NumberValidator, UrlValidator
public interface Validator
The validation interface for validating argument values(s).
A validator can replace the argument string value with a
specific class instance e.g. the UrlValidator
replaces
the string value with a URL
instance.
- Author:
- Rob Oxspring, John Keyes
Method Summary |
void |
validate(List values)
Validate the specified values (List of Strings). |
validate
void validate(List values)
throws InvalidArgumentException
- Validate the specified values (List of Strings).
- Parameters:
values
- The values to validate.
- Throws:
InvalidArgumentException
- If any of the
specified values are not valid.
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.