Package berlin.yuna.survey.model
Class Condition<T>
- java.lang.Object
-
- berlin.yuna.survey.model.Condition<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
apply(T answer)
Specifies what happens on on the transition with the given answerString
getLabel()
Gets the defined label for thisCondition
-
-
-
Constructor Detail
-
Condition
public Condition()
Constructor without label
-
Condition
public Condition(String label)
Constructor with label- Parameters:
label
- (optional) used for render diagramsDiagramExporter
-
-
Method Detail
-
apply
public abstract boolean apply(T answer)
Specifies what happens on on the transition with the given answer- Parameters:
answer
- passed for optional usage- Returns:
true
if transition is allowed elsefalse
-
-