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 Form.java
Date Tue, 29 Apr 2003 02:59:49 GMT
dgraham     2003/04/28 19:59:49

  Modified:    validator/src/share/org/apache/commons/validator Form.java
  Log:
  Minor documentation changes.
  
  Revision  Changes    Path
  1.4       +23 -24    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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Form.java	30 Mar 2002 04:33:17 -0000	1.3
  +++ Form.java	29 Apr 2003 02:59:49 -0000	1.4
  @@ -7,7 +7,7 @@
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -72,19 +72,18 @@
   
   
   /**
  - * <p>This contains a set of validation rules for a 
  - * form/JavaBean.  The information is contained in a 
  - * list of <code>Field</code> objects.</p>
  + * <p>This contains a set of validation rules for a form/JavaBean.  The information
is 
  + * contained in a list of <code>Field</code> objects.</p>
    *
    * @author David Winterfeldt
    * @version $Revision$ $Date$
  -*/
  + */
   public class Form implements Serializable {
   
       /**
        * The name/key the set of validation rules is 
        * stored under.
  -    */
  +     */
       protected String name = null;
   
       /**
  @@ -92,7 +91,7 @@
        * the order they were added in although individual 
        * <code>Field</code>s can be retrieved using 
        * <code>Map</code> of <code>Field</code>s.
  -    */
  +     */
       protected List lFields = new ArrayList();
       
       /**
  @@ -102,21 +101,21 @@
   
       /**
        * Gets the name/key of the set of validation rules.
  -    */
  +     */
       public String getName() {
          return name;	
       }
   
       /**
        * Sets the name/key of the set of validation rules.
  -    */
  +     */
       public void setName(String name) {
          this.name = name;	
       }
   
       /**
        * Add a <code>Field</code> to the <code>Form</code>.
  -    */
  +     */
       public void addField(Field f) {
          if (f != null && f.getProperty() != null && f.getProperty().length()
> 0) {
          	  lFields.add(f);
  @@ -128,7 +127,7 @@
       /**
        * A <code>List</code> of <code>Field</code>s is returned as
an 
        * unmodifiable <code>List</code>.
  -    */
  +     */
       public List getFields() {
       	return Collections.unmodifiableList(lFields);
       }
  @@ -136,26 +135,26 @@
       /**
        * A <code>Map</code> of <code>Field</code>s is returned as
an 
        * unmodifiable <code>List</code>.
  -    */
  +     */
       public Map getFieldMap() {
       	return Collections.unmodifiableMap(hFields);
       }
   
       /**
        * Processes all of the <code>Form</code>'s <code>Field</code>s.
  -    */
  +     */
       public void process(Map globalConstants, Map constants) {
  -       hFields.setFast(true);
  -       
  -       for (Iterator i = lFields.iterator(); i.hasNext(); ) {
  -       	  Field f = (Field)i.next();
  -       	  f.process(globalConstants, constants);
  -       }
  +    	hFields.setFast(true);
  +    
  +    	for (Iterator i = lFields.iterator(); i.hasNext();) {
  +    		Field f = (Field) i.next();
  +    		f.process(globalConstants, constants);
  +    	}
       }
   
       /**
        * Returns a string representation of the object.
  -    */    
  +     */    
       public String toString() {
          StringBuffer results = new StringBuffer();
          
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message