org.vladnput
Class VladErrors

java.lang.Object
  extended by org.vladnput.VladErrors
All Implemented Interfaces:
java.lang.Iterable<VladError>

public class VladErrors
extends java.lang.Object
implements java.lang.Iterable<VladError>

A list of VladError objects.

Author:
Patrick Higgins

Constructor Summary
VladErrors()
           
 
Method Summary
 void add(VladError error)
          Add error to this list
 java.util.List<VladError> getErrors()
          Returns the actual errors, which is a list of VladError objects.
 boolean hasEnforcedErrors()
           
 boolean hasErrors()
          Returns true if there are errors, false otherwise.
 java.util.Iterator<VladError> iterator()
          Allows iteration over the errors.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VladErrors

public VladErrors()
Method Detail

add

public void add(VladError error)
Add error to this list

Parameters:
error - Error to add

hasEnforcedErrors

public boolean hasEnforcedErrors()
Returns:
true if there are errors where getEnforce() returns true, false otherwise

hasErrors

public boolean hasErrors()
Returns true if there are errors, false otherwise.

Returns:
true if there are errors, false otherwise

getErrors

public java.util.List<VladError> getErrors()
Returns the actual errors, which is a list of VladError objects.

Returns:
List of VladError objects

iterator

public java.util.Iterator<VladError> iterator()
Allows iteration over the errors.

Specified by:
iterator in interface java.lang.Iterable<VladError>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 Patrick Higgins. All Rights Reserved.