org.formproc.validation
Class ValidationResultSet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--org.formproc.validation.ValidationResultSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class ValidationResultSet
extends java.util.ArrayList

A set of ValidationResult objects.

Author:
Anthony Eden
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_SEPARATOR
          The default separator.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ValidationResultSet()
           
 
Method Summary
 boolean allValid()
          Return true if all ValidationResults in the set are valid.
 java.lang.String getErrorMessage()
          Get the error message for the validation set.
 java.lang.String getErrorMessage(java.lang.String separator)
          Get the error message for the validation set.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, 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, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

DEFAULT_SEPARATOR

public static final java.lang.String DEFAULT_SEPARATOR
The default separator.

See Also:
Constant Field Values
Constructor Detail

ValidationResultSet

public ValidationResultSet()
Method Detail

allValid

public boolean allValid()
Return true if all ValidationResults in the set are valid.

Returns:
True if all are valid

getErrorMessage

public java.lang.String getErrorMessage()
Get the error message for the validation set. The error messages for all validators in error are combined using the DEFAULT_SEPARATOR String.

Returns:
The error message

getErrorMessage

public java.lang.String getErrorMessage(java.lang.String separator)
Get the error message for the validation set. The error messages for all validators in error are combined using the given separator String.

Parameters:
separator - The separator String
Returns:
The combined error message String


Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.