dgraham     2003/09/28 11:47:32

  Modified:    validator/src/share/org/apache/commons/validator Field.java
  Log:
  javadoc changes only.
  
  Revision  Changes    Path
  1.25      +32 -25    
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.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Field.java        26 Aug 2003 16:08:50 -0000      1.24
  +++ Field.java        28 Sep 2003 18:47:32 -0000      1.25
  @@ -76,9 +76,10 @@
   
   /**
    * <p>
  - * This contains the list of pluggable validators to run on a field and any message
  - * information and variables to perform the validations and generate error
  - * messages.  Instances of this class are configured with a &lt;field&gt; xml 
element.
  + * This contains the list of pluggable validators to run on a field and any 
  + * message information and variables to perform the validations and generate 
  + * error messages.  Instances of this class are configured with a 
  + * &lt;field&gt; xml element.
    * </p>
    *
    * @author David Winterfeldt
  @@ -122,6 +123,7 @@
       protected String depends = null;
   
       protected int page = 0;
  +    
       protected int fieldOrder = 0;
   
       /**
  @@ -130,19 +132,20 @@
       protected FastHashMap hDependencies = new FastHashMap();
   
       /**
  -     * Internal representation of this.depends String as a List.  This List gets 
updated
  -     * whenever setDepends() gets called.  This List is synchronized so a call to
  -     * setDepends() (which clears the List) won't interfere with a call to
  -     * isDependency().
  +     * Internal representation of this.depends String as a List.  This List 
  +     * gets updated whenever setDepends() gets called.  This List is 
  +     * synchronized so a call to setDepends() (which clears the List) won't 
  +     * interfere with a call to isDependency().
        */
       private List dependencyList = Collections.synchronizedList(new ArrayList());
   
       protected FastHashMap hVars = new FastHashMap();
  +    
       protected FastHashMap hMsgs = new FastHashMap();
   
       /**
  -     * Holds Maps of arguments.  args[0] returns the Map for the first replacement
  -     * argument.
  +     * Holds Maps of arguments.  args[0] returns the Map for the first 
  +     * replacement argument.
        * @since Validator 1.1
        */
       protected Map[] args = new Map[10];
  @@ -334,10 +337,11 @@
       }
   
       /**
  -     * Gets the default <code>Arg</code> object at the given position.  If the key
  -     * finds a <code>null</code> value then the default value will try to be 
retrieved.
  -     * @param key The name the Arg is stored under.  If not found, the default Arg 
for
  -     * the given position (if any) will be retrieved.
  +     * Gets the <code>Arg</code> object at the given position.  If the key
  +     * finds a <code>null</code> value then the default value will be 
  +     * retrieved.
  +     * @param key The name the Arg is stored under.  If not found, the default 
  +     * Arg for 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
  @@ -349,7 +353,8 @@
   
           Arg arg = (Arg) args[position].get(key);
   
  -        // Didn't find default arg so exit, otherwise we would get into infinite 
recursion
  +        // Didn't find default arg so exit, otherwise we would get into 
  +        // infinite recursion
           if ((arg == null) && key.equals(DEFAULT_ARG)) {
               return null;
           }
  @@ -375,8 +380,9 @@
       }
   
       /**
  -     * Gets the arg0 <code>Arg</code> object based on the key passed in.  If the key
  -     * finds a <code>null</code> value then the default value will try to be 
retrieved.
  +     * Gets the arg0 <code>Arg</code> object based on the key passed in.  If 
  +     * the key finds a <code>null</code> value then the default value will 
  +     * be retrieved.
        * @deprecated Use getArg(String, 0) instead.
        */
       public Arg getArg0(String key) {
  @@ -542,7 +548,8 @@
   
       /**
        * If there is a value specified for the indexedProperty field then
  -     * <code>true</code> will be returned.  Otherwise it will be <code>false</code>.
  +     * <code>true</code> will be returned.  Otherwise it will be 
  +     * <code>false</code>.
        */
       public boolean isIndexed() {
           return ((indexedListProperty != null && indexedListProperty.length() > 0));
  @@ -653,8 +660,8 @@
       }
   
       /**
  -     * Replace the arg <code>Collection</code> key value with the key/value pairs
  -     * passed in.
  +     * Replace the arg <code>Collection</code> key value with the key/value 
  +     * pairs passed in.
        */
       private void processArg(String key, String replaceValue) {
           for (int i = 0; i < this.args.length; i++) {
  @@ -692,8 +699,8 @@
       }
   
       /**
  -     * Gets an unmodifiable <code>List</code> of the dependencies in the same order
  -     * they were defined in parameter passed to the setDepends() method.
  +     * Gets an unmodifiable <code>List</code> of the dependencies in the same 
  +     * order they were defined in parameter passed to the setDepends() method.
        */
       public List getDependencyList() {
           return Collections.unmodifiableList(this.dependencyList);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to