com.intel.gpe.gridbeans
Class ErrorSet

java.lang.Object
  extended by com.intel.gpe.gridbeans.ErrorSet

public class ErrorSet
extends java.lang.Object

The class that holds a list of errors gathered during GridBean input validation.

Version:
$Id$
Author:
Ralf Ratering

Constructor Summary
ErrorSet()
           
 
Method Summary
 void addError(JobError error)
          Add an error.
 JobError getErrorAt(int index)
          Get the error at the specified index
 int size()
          Get the number of errors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorSet

public ErrorSet()
Method Detail

addError

public void addError(JobError error)
Add an error.

Parameters:
error - The error

size

public int size()
Get the number of errors.

Returns:
The count of errors

getErrorAt

public JobError getErrorAt(int index)
Get the error at the specified index

Parameters:
index - The index
Returns:
The error at the index