Package org.kuali.rice.ken.service
Class ProcessingResult
java.lang.Object
org.kuali.rice.ken.service.ProcessingResult
Encapsulates the number of successes and failures in a giving processing run
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ProcessingResult result) Adds the contents of the specified ProcessingResult to this ProcessingResultvoidAdds a collection of failuresvoidAdds a collectin of successesvoidaddFailure(Object o) Adds a failurevoidaddSuccess(Object o) Adds a successList<?> Returns the list of failuresList<?> Returns the list of successestoString()Returns a string representation of this ProcessingResults object
-
Constructor Details
-
ProcessingResult
public ProcessingResult()
-
-
Method Details
-
getFailures
Returns the list of failures- Returns:
- the list of failures
-
getSuccesses
Returns the list of successes- Returns:
- the list of successes
-
addFailure
Adds a failure- Parameters:
o- an object representing a failure
-
addAllFailures
Adds a collection of failures- Parameters:
Collection- a collection of failures
-
addSuccess
Adds a success- Parameters:
o- an object representing a success
-
addAllSuccesses
Adds a collectin of successes- Parameters:
Collection- a collection of successes
-
add
Adds the contents of the specified ProcessingResult to this ProcessingResult- Parameters:
result- the result to append to this result
-
toString
Returns a string representation of this ProcessingResults object
-