org.kuali.rice.ken.service
Class ProcessingResult

java.lang.Object
  extended by org.kuali.rice.ken.service.ProcessingResult

public class ProcessingResult
extends Object

Encapsulates the number of successes and failures in a giving processing run

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ProcessingResult()
           
 
Method Summary
 void add(ProcessingResult result)
          Adds the contents of the specified ProcessingResult to this ProcessingResult
 void addAllFailures(Collection c)
          Adds a collection of failures
 void addAllSuccesses(Collection c)
          Adds a collectin of successes
 void addFailure(Object o)
          Adds a failure
 void addSuccess(Object o)
          Adds a success
 List<?> getFailures()
          Returns the list of failures
 List<?> getSuccesses()
          Returns the list of successes
 String toString()
          Returns a string representation of this ProcessingResults object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessingResult

public ProcessingResult()
Method Detail

getFailures

public List<?> getFailures()
Returns the list of failures

Returns:
the list of failures

getSuccesses

public List<?> getSuccesses()
Returns the list of successes

Returns:
the list of successes

addFailure

public void addFailure(Object o)
Adds a failure

Parameters:
o - an object representing a failure

addAllFailures

public void addAllFailures(Collection c)
Adds a collection of failures

Parameters:
Collection - a collection of failures

addSuccess

public void addSuccess(Object o)
Adds a success

Parameters:
o - an object representing a success

addAllSuccesses

public void addAllSuccesses(Collection c)
Adds a collectin of successes

Parameters:
Collection - a collection of successes

add

public void add(ProcessingResult result)
Adds the contents of the specified ProcessingResult to this ProcessingResult

Parameters:
result - the result to append to this result

toString

public String toString()
Returns a string representation of this ProcessingResults object

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.