commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator ValidatorResources.java CreditCardValidator.java Field.java EmailValidator.java Form.java DateValidator.java UrlValidator.java
Date Sun, 03 Aug 2003 17:29:40 GMT
dgraham     2003/08/03 10:29:40

  Modified:    validator/src/share/org/apache/commons/validator
                        ValidatorResources.java CreditCardValidator.java
                        Field.java EmailValidator.java Form.java
                        DateValidator.java UrlValidator.java
  Log:
  Added @since 1.1 javadoc tags.
  
  Revision  Changes    Path
  1.24      +9 -4      jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java
  
  Index: ValidatorResources.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ValidatorResources.java	5 Jun 2003 01:17:43 -0000	1.23
  +++ ValidatorResources.java	3 Aug 2003 17:29:40 -0000	1.24
  @@ -150,6 +150,7 @@
        * 
        * @param in InputStream to a validation.xml configuration file.  It's the client's

        * responsibility to close this stream.
  +     * @since Validator 1.1
        */
       public ValidatorResources(InputStream in) throws IOException {
           this(new InputStream[] { in });
  @@ -161,6 +162,7 @@
        * @param streams An array of InputStreams to several validation.xml 
        * configuration files that will be read in order and merged into this object.  
        * It's the client's responsibility to close these streams.
  +     * @since Validator 1.1
        */
       public ValidatorResources(InputStream[] streams) throws IOException {
           super();
  @@ -207,6 +209,7 @@
        * Add a <code>FormSet</code> to this <code>ValidatorResources</code>
        * object.  It will be associated with the <code>Locale</code> of the 
        * <code>FormSet</code>.
  +     * @since Validator 1.1
        */
       public void addFormSet(FormSet fs) {
           String key = this.buildKey(fs);
  @@ -344,6 +347,7 @@
        *    <li>language</li>
        *    <li>default locale</li>
        * </ol>
  +     * @since Validator 1.1
        */
       public Form getForm(Locale locale, String formKey) {
           return this.getForm(
  @@ -385,6 +389,7 @@
        *    <li>language</li>
        *    <li>default locale</li>
        * </ol>
  +     * @since Validator 1.1
        */
       public Form getForm(
           String language,
  
  
  
  1.9       +5 -4      jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java
  
  Index: CreditCardValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CreditCardValidator.java	8 Jun 2003 21:53:38 -0000	1.8
  +++ CreditCardValidator.java	3 Aug 2003 17:29:40 -0000	1.9
  @@ -80,6 +80,7 @@
    * @author James Turner
    * @author <a href="mailto:husted@apache.org">Ted Husted</a>
    * @author David Graham
  + * @since Validator 1.1
    * @version $Revision$ $Date$
    */
   public class CreditCardValidator {
  
  
  
  1.20      +8 -4      jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java
  
  Index: Field.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Field.java	12 Jun 2003 01:04:11 -0000	1.19
  +++ Field.java	3 Aug 2003 17:29:40 -0000	1.20
  @@ -143,6 +143,7 @@
       /**
        * Holds Maps of arguments.  args[0] returns the Map for the first replacement
        * argument.
  +     * @since Validator 1.1
        */
       protected Map[] args = new Map[10];
       
  @@ -292,6 +293,7 @@
   
       /**
        * Add an <code>Arg</code> to the replacement argument list.
  +     * @since Validator 1.1
        */
       public void addArg(Arg arg) {
           // TODO this first if check can go away after arg0, etc. are removed from dtd
  @@ -332,6 +334,7 @@
       /**
        * Gets the default <code>Arg</code> object at the given position.
        * @return The default Arg or null if not found.
  +     * @since Validator 1.1
        */
       public Arg getArg(int position) {
           return this.getArg(DEFAULT_ARG, position);
  @@ -344,6 +347,7 @@
        * the given position (if any) will be retrieved.
        * @param position The Arg number to find.
        * @return The Arg with the given name and position or null if not found.
  +     * @since Validator 1.1
        */
       public Arg getArg(String key, int position) {
   		if ((position >= this.args.length) || (this.args[position] == null)) {
  
  
  
  1.8       +5 -4      jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java
  
  Index: EmailValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- EmailValidator.java	3 May 2003 21:25:02 -0000	1.7
  +++ EmailValidator.java	3 Aug 2003 17:29:40 -0000	1.8
  @@ -77,6 +77,7 @@
    * @author James Turner
    * @author <a href="mailto:husted@apache.org">Ted Husted</a>
    * @author David Graham
  + * @since Validator 1.1
    * @version $Revision$ $Date$
    */
   public class EmailValidator {
  
  
  
  1.9       +8 -5      jakarta-commons/validator/src/share/org/apache/commons/validator/Form.java
  
  Index: Form.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Form.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Form.java	29 May 2003 03:34:35 -0000	1.8
  +++ Form.java	3 Aug 2003 17:29:40 -0000	1.9
  @@ -140,7 +140,9 @@
       }
       
       /**
  -     * Returns the Field with the given name or null if this Form has no such field
  +     * Returns the Field with the given name or null if this Form has no such 
  +     * field.
  +     * @since Validator 1.1
        */
       public Field getField(String fieldName) {
           return (Field) this.hFields.get(fieldName);
  @@ -148,6 +150,7 @@
       
       /**
        * Returns true if this Form contains a Field with the given name.
  +     * @since Validator 1.1
        */
       public boolean containsField(String fieldName){
           return this.hFields.containsKey(fieldName);
  
  
  
  1.2       +7 -5      jakarta-commons/validator/src/share/org/apache/commons/validator/DateValidator.java
  
  Index: DateValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/DateValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DateValidator.java	1 May 2003 02:42:30 -0000	1.1
  +++ DateValidator.java	3 Aug 2003 17:29:40 -0000	1.2
  @@ -69,13 +69,15 @@
   /**
    * <p>Perform date validations.</p>
    * <p>
  - * This class is a Singleton; you can retrieve the instance via the getInstance() method.
  + * This class is a Singleton; you can retrieve the instance via the 
  + * getInstance() method.
    * </p>
    *
    * @author David Winterfeldt
    * @author James Turner
    * @author <a href="mailto:husted@apache.org">Ted Husted</a>
    * @author David Graham
  + * @since Validator 1.1
    * @version $Revision$
    */
   public class DateValidator {
  
  
  
  1.14      +5 -4      jakarta-commons/validator/src/share/org/apache/commons/validator/UrlValidator.java
  
  Index: UrlValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/UrlValidator.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- UrlValidator.java	3 May 2003 21:14:51 -0000	1.13
  +++ UrlValidator.java	3 Aug 2003 17:29:40 -0000	1.14
  @@ -114,6 +114,7 @@
    *
    * @author Robert Leland
    * @author David Graham
  + * @since Validator 1.1
    * @version $Revision$ $Date$
    */
   public class UrlValidator implements Serializable {
  
  
  

Mime
View raw message