planetj.exception
Class ValidationExceptionCollection

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--planetj.exception.ValidationExceptionCollection
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class ValidationExceptionCollection
extends ArrayList

Insert the type's description here. Creation date: (4/5/2002 12:51:17 PM)

See Also:
Serialized Form

Constructor Summary
ValidationExceptionCollection()
          ExceptionCollection constructor comment.
ValidationExceptionCollection(int initialCapacity)
          ExceptionCollection constructor comment.
 
Method Summary
 void add(int index, Object element)
          Inserts the specified element at the specified position in this list.
 boolean add(Object element)
          Appends the specified element to the end of this list.
 boolean addAll(Collection c)
          Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator.
 boolean addAll(int index, Collection c)
          Inserts all of the elements in the specified Collection into this list, starting at the specified position.
 StringBuffer toDetailedStringBuffer()
          Returns a StringBuffer of all the Detailed Validation errors for each Exception in this list Please use this method if possible for performance Creation date: (4/5/2002 1:16:04 PM)
 String toShortString()
          Returns a String of all the Short Validation errors for each Exception in this list Please use toStringBuffer() if possible for performance Creation date: (4/5/2002 1:14:10 PM)
 StringBuffer toShortStringBuffer()
          Returns a StringBuffer of all the Short Validation errors for each Exception in this list Please use this method if possible for performance Creation date: (4/5/2002 1:16:04 PM)
 String toString()
          Returns a String of all the Detailed Validation errors for each Exception in this list Please use toStringBuffer() if possible for performance Creation date: (4/5/2002 1:14:10 PM)
 
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

ValidationExceptionCollection

public ValidationExceptionCollection()
ExceptionCollection constructor comment.


ValidationExceptionCollection

public ValidationExceptionCollection(int initialCapacity)
ExceptionCollection constructor comment.

Parameters:
initialCapacity - int
Method Detail

add

public void add(int index,
                Object element)
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Specified by:
add in interface List
Overrides:
add in class ArrayList
Parameters:
index - index at which the specified element is to be inserted.
element - element to be inserted.
Throws:
IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).

add

public boolean add(Object element)
Appends the specified element to the end of this list.

Specified by:
add in interface List
Overrides:
add in class ArrayList
Returns:
true (as per the general contract of Collection.add).

addAll

public boolean addAll(int index,
                      Collection c)
Inserts all of the elements in the specified Collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified Collection's iterator.

Specified by:
addAll in interface List
Overrides:
addAll in class ArrayList
Parameters:
index - index at which to insert first element from the specified collection.
c - elements to be inserted into this list.
Throws:
IndexOutOfBoundsException - if index out of range (index < 0 || index > size()).

addAll

public boolean addAll(Collection c)
Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. The behavior of this operation is undefined if the specified Collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this list, and this list is nonempty.)

Specified by:
addAll in interface List
Overrides:
addAll in class ArrayList
Parameters:
c - elements to be inserted into this list.
Throws:
IndexOutOfBoundsException - if index out of range (index < 0 || index > size()).

toDetailedStringBuffer

public StringBuffer toDetailedStringBuffer()
Returns a StringBuffer of all the Detailed Validation errors for each Exception in this list Please use this method if possible for performance Creation date: (4/5/2002 1:16:04 PM)


toShortString

public String toShortString()
Returns a String of all the Short Validation errors for each Exception in this list Please use toStringBuffer() if possible for performance Creation date: (4/5/2002 1:14:10 PM)


toShortStringBuffer

public StringBuffer toShortStringBuffer()
Returns a StringBuffer of all the Short Validation errors for each Exception in this list Please use this method if possible for performance Creation date: (4/5/2002 1:16:04 PM)


toString

public String toString()
Returns a String of all the Detailed Validation errors for each Exception in this list Please use toStringBuffer() if possible for performance Creation date: (4/5/2002 1:14:10 PM)

Overrides:
toString in class AbstractCollection