com.atlassian.greenhopper.service
Interface ServiceOutcome<T>

All Known Implementing Classes:
ServiceOutcomeImpl

public interface ServiceOutcome<T>

A service result that has an value.


Method Summary
 ErrorCollection getErrors()
           
 T getValue()
          Returns the value that was returned by the service, or null.
 boolean isValid()
           
 

Method Detail

isValid

boolean isValid()
Returns:
true if there are no errors, false otherwise.

getErrors

ErrorCollection getErrors()
Returns:
an ErrorCollection that contains any errors that may have happened as a result of the validations.

getValue

T getValue()
Returns the value that was returned by the service, or null.

Returns:
the value returned by the service, or null


Copyright © 2007-2012 Atlassian. All Rights Reserved.