Package berlin.yuna.survey.model
Class Condition<T>
java.lang.Object
berlin.yuna.survey.model.Condition<T>
- Type Parameters:
T
- answer type should be the same as theFlowItem
type
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Condition
public Condition()Constructor without label -
Condition
Constructor with label- Parameters:
label
- (optional) used for render diagramsDiagramExporter
-
-
Method Details
-
getLabel
Gets the defined label for thisCondition
- Returns:
- defined label
-
apply
Specifies what happens on on the transition with the given answer- Parameters:
answer
- passed for optional usage- Returns:
true
if transition is allowed elsefalse
-