Skip to content

Commit 3a93ea2

Browse files
author
John Keyes
committed
- updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@267450 13f79535-47bb-0310-9956-ffa450edef68
1 parent cc7da5a commit 3a93ea2

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

src/java/org/apache/commons/cli2/validation/Validator.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
@@ -18,18 +18,25 @@
1818
import 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
*/
2330
public 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
}

0 commit comments

Comments
 (0)