net.dpml.cli.validation

Interface Validator

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 java.net.URL instance.
Version:
@PROJECT-VERSION@
Author:
@PUBLISHER-NAME@

Method Summary

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

Method Details

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.