File tree Expand file tree Collapse file tree
src/java/org/apache/commons/cli2/validation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /**
2- * Copyright 2003-2004 The Apache Software Foundation
1+ /*
2+ * Copyright 2003-2005 The Apache Software Foundation
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1818import java .util .List ;
1919
2020/**
21- * Identifies (and maybe converts) the acceptable Argument values
21+ * The validation interface for validating argument values(s).
22+ *
23+ * A validator can replace the argument string value with a
24+ * specific class instance e.g. the {@link UrlValidator} replaces
25+ * the string value with a {@link java.net.URL} instance.
26+ *
27+ * @author Rob Oxspring
28+ * @author John Keyes
2229 */
2330public interface Validator {
2431
2532 /**
2633 * Validate the specified values (List of Strings).
2734 *
28- * @param values
29- * the values to validate
35+ * @param values The values to validate.
3036 *
31- * @throws InvalidArgumentException
32- * if any of the specified values are not valid
37+ * @throws InvalidArgumentException If any of the
38+ * specified values are not valid.
3339 */
3440 void validate (final List values ) throws InvalidArgumentException ;
41+
3542}
You can’t perform that action at this time.
0 commit comments