public static class OutcomeFactory.OutcomeImpl extends Object implements Outcome
outcome
.Outcome.Level
Constructor and Description |
---|
OutcomeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addOutcome(Outcome outcome) |
void |
addOutcomes(List<Outcome> outcomes) |
Exception |
getException() |
Outcome.Level |
getLevel() |
String |
getMessage() |
List<Outcome> |
getOutcomes() |
boolean |
isMultiOutcome() |
boolean |
isOK() |
void |
setException(Exception exception) |
void |
setLevel(Outcome.Level level) |
void |
setMessage(String message) |
String |
toString() |
public String getMessage()
getMessage
in interface Outcome
public void setMessage(String message)
message
- the message to setpublic Exception getException()
getException
in interface Outcome
public void setException(Exception exception)
exception
- the exception to setpublic Outcome.Level getLevel()
public void setLevel(Outcome.Level level)
level
- the level to setpublic List<Outcome> getOutcomes()
getOutcomes
in interface Outcome
public void addOutcome(Outcome outcome)
addOutcome
in interface Outcome
public void addOutcomes(List<Outcome> outcomes)
addOutcomes
in interface Outcome
public boolean isMultiOutcome()
isMultiOutcome
in interface Outcome
Copyright © 2013–2019. All rights reserved.