net.dpml.cli.validation
Interface Validator

All Known Implementing Classes:
ClassValidator, DateValidator, EnumValidator, FileValidator, NumberValidator, URIValidator, 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.

Version:
1.0.0
Author:
Digital Product Meta Library

Method Summary
 void validate(List values)
          Validate the specified values (List of Strings).
 

Method Detail

validate

public 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.