|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tml.outcomes.AddTreeOutcome
public class AddTreeOutcome
The outcome of adding a Tree to a data source.
| Constructor Summary | |
|---|---|
AddTreeOutcome(Exception failure)
Creates an instance with the exception raised when attempting to add a tree. |
|
AddTreeOutcome(org.gcube.data.trees.data.Tree tree)
Creates an instance with successfully added tree. |
|
| Method Summary | |
|---|---|
Exception |
failure()
Returns the exception raised when unsuccessfully adding a tree. |
boolean |
isFailure()
Returns true if the outcome indicates a failure. |
boolean |
isSuccess()
Returns true if the outcome indicates success. |
String |
toString()
|
org.gcube.data.trees.data.Tree |
tree()
Returns the successfully added tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddTreeOutcome(org.gcube.data.trees.data.Tree tree)
tree - the treepublic AddTreeOutcome(Exception failure)
failure - the exception| Method Detail |
|---|
public boolean isSuccess()
true if the outcome indicates success.
In this case, tree() is guaranteed not to be null, while
failure() is guaranteed to be null
true if the outcome indicates success, false otherwisepublic boolean isFailure()
true if the outcome indicates a failure.
In this case, failure() is guaranteed not to be null, while
tree() is guaranteed to be null
true if the outcome indicates a failure, false otherwisepublic org.gcube.data.trees.data.Tree tree()
null if the outcome indicates a failurepublic Exception failure()
null if the outcome indicates a successpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||