/*
 * $Id$
 *
 * Copyright 2005 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */ 

package org.apache.commons.beanutils;

import java.util.List;
import java.util.ArrayList;

/**
 * Indexed Properties Test bean for JUnit tests for the "beanutils" component.
 *
 * @author Niall Pemberton
 * @version $Revision$ $Date$
 */
public class IndexedTestBean {

    private String[] stringArray;
    private List stringList;
    private ArrayList arrayList;


    // ----------------------------------------------------------- Constructors

    public IndexedTestBean() {
    }

    public String[] getStringArray() {
        return stringArray;
    }

    public void setStringArray(String[] stringArray) {
        this.stringArray = stringArray;
    }

    public String getStringArray(int index) {
        return (String)stringArray[index];
    }

    public void setStringArray(int index, String value) {
        stringArray[index] = value;
    }

    public List getStringList() {
        return stringList;
    }

    public void setStringList(List stringList) {
        this.stringList = stringList;
    }

    public String getStringList(int index) {
        return (String)stringList.get(index);
    }

    public void setStringList(int index, String value) {
        stringList.add(index, value);
    }

    public ArrayList getArrayList() {
        return arrayList;
    }

    public void setArrayList(ArrayList arrayList) {
        this.arrayList = arrayList;
    }

    public Object getArrayList(int index) {
        return arrayList.get(index);
    }

    public void setArrayList(int index, Object value) {
        arrayList.add(index, value);
    }

}

@@ -1082,41 +1082,142 @@
     
-public IndexedTestBean() %7B%0A    %7D%0A
+/**%0A     * Default Constructor.%0A     */%0A    public IndexedTestBean() %7B%0A    %7D%0A%0A    /**%0A     * Getter for the String%5B%5D property.%0A     */
 %0A   
@@ -1279,32 +1279,89 @@
 ngArray;%0A    %7D%0A%0A
+    /**%0A     * Setter for the String%5B%5D property.%0A     */%0A
     public void 
@@ -1438,32 +1438,97 @@
 ngArray;%0A    %7D%0A%0A
+    /**%0A     * Indexed Getter for the String%5B%5D property.%0A     */%0A
     public Strin
@@ -1599,32 +1599,97 @@
 %5Bindex%5D;%0A    %7D%0A%0A
+    /**%0A     * Indexed Setter for the String%5B%5D property.%0A     */%0A
     public void 
@@ -1765,32 +1765,95 @@
 = value;%0A    %7D%0A%0A
+    /**%0A     * Getter for the java.util.List property.%0A     */%0A
     public List 
@@ -1896,32 +1896,95 @@
 ingList;%0A    %7D%0A%0A
+    /**%0A     * Setter for the java.util.List property.%0A     */%0A
     public void 
@@ -2053,32 +2053,103 @@
 ingList;%0A    %7D%0A%0A
+    /**%0A     * Indexed Getter for the java.util.List property.%0A     */%0A
     public Strin
@@ -2222,32 +2222,103 @@
 (index);%0A    %7D%0A%0A
+    /**%0A     * Indexed Setter for the java.util.List property.%0A     */%0A
     public void 
@@ -2395,32 +2395,100 @@
  value);%0A    %7D%0A%0A
+    /**%0A     * Getter for the java.util.ArrayList property.%0A     */%0A
     public Array
@@ -2534,32 +2534,100 @@
 rayList;%0A    %7D%0A%0A
+    /**%0A     * Setter for the java.util.ArrayList property.%0A     */%0A
     public void 
@@ -2697,32 +2697,108 @@
 rayList;%0A    %7D%0A%0A
+    /**%0A     * Indexed Getter for the java.util.ArrayList property.%0A     */%0A
     public Objec
@@ -2865,24 +2865,100 @@
 ex);%0A    %7D%0A%0A
+    /**%0A     * Indexed Setter for the java.util.ArrayList property.%0A     */%0A
     public v

Update JavaDocs