Uses of Class
berlin.yuna.survey.model.types.FlowItem
-
Packages that use FlowItem Package Description berlin.yuna.survey.logic berlin.yuna.survey.model berlin.yuna.survey.model.exception berlin.yuna.survey.model.types -
-
Uses of FlowItem in berlin.yuna.survey.logic
Methods in berlin.yuna.survey.logic with type parameters of type FlowItem Modifier and Type Method Description <I extends FlowItem<?,?>>
ISurvey. get(I type)
Get a flow item by the givenFlowItem
Methods in berlin.yuna.survey.logic that return FlowItem Modifier and Type Method Description protected FlowItem<?,?>
Survey. findLast(LinkedList<HistoryItem> historySorted)
FlowItem<?,?>
Survey. get()
Get currentFlowItem
of the flowFlowItem<?,?>
Survey. get(Enum<?> label)
Get a flow item by the givenenum
To avoid cast its recommended to useget(FlowItem)
FlowItem<?,?>
Survey. get(String label)
Get a flow item by the givenString
To avoid cast its recommended to useget(FlowItem)
FlowItem<?,?>
Survey. getFirst()
Get firstFlowItem
of the flowFlowItem<?,?>
Survey. getPrevious()
Get previousFlowItem
from the flowFlowItem<?,?>
DiagramImporter. read(guru.nidi.graphviz.model.MutableGraph graph)
Reads aMutableGraph
with a DOT formatFlowItem<?,?>
DiagramImporter. read(File file)
Reads aFile
with a DOT formatFlowItem<?,?>
DiagramImporter. read(InputStream inputStream)
Reads aInputStream
with a DOT formatFlowItem<?,?>
DiagramImporter. read(String dot)
Reads aString
with a DOT formatFlowItem<?,?>
DiagramImporter. read(Path path)
Reads aPath
with a DOT formatMethods in berlin.yuna.survey.logic that return types with arguments of type FlowItem Modifier and Type Method Description Set<Class<? extends FlowItem<?,?>>>
DiagramImporter. flowRegister()
FlowRegister is a set of knownFlowItem
which are recognised and used while parsing.Methods in berlin.yuna.survey.logic with parameters of type FlowItem Modifier and Type Method Description static Survey
Survey. init(FlowItem<?,?> flowStart)
Starts new SurveyCtxstatic Survey
Survey. init(FlowItem<?,?> flowStart, Iterable<? extends HistoryItemBase<?>> history)
boolean
Survey. transitTo(FlowItem<?,?> target)
Transit to a specificFlowItem
in the flowboolean
Survey. transitTo(FlowItem<?,?> target, Object context)
Transit to a specificFlowItem
in the flow -
Uses of FlowItem in berlin.yuna.survey.model
Methods in berlin.yuna.survey.model that return FlowItem Modifier and Type Method Description FlowItem<?,?>
ContextExchange. current()
FlowItem<?,?>
ContextExchange. flow()
FlowItem<?,?>
ContextExchange. target()
FlowItem<?,?>
Route. target()
Methods in berlin.yuna.survey.model with parameters of type FlowItem Modifier and Type Method Description static ContextExchange
ContextExchange. contextOf(Survey survey, Object payload, Object context, FlowItem<?,?> target)
boolean
HistoryItemBase. match(FlowItem<?,?> question)
static Optional<HistoryItem>
HistoryItem. of(FlowItem<?,?> flowStart, HistoryItemBase<?> item)
static Optional<HistoryItemJson>
HistoryItemJson. of(FlowItem<?,?> flowStart, HistoryItemBase<?> item)
ContextExchange
ContextExchange. target(FlowItem<?,?> target)
Constructors in berlin.yuna.survey.model with parameters of type FlowItem Constructor Description Route(FlowItem<?,?> target, Function<T,Boolean> function, Condition<T> condition, boolean backwards)
-
Uses of FlowItem in berlin.yuna.survey.model.exception
Constructors in berlin.yuna.survey.model.exception with parameters of type FlowItem Constructor Description QuestionTypeException(String flow, FlowItem<?,?> original, FlowItem<?,?> invalid)
-
Uses of FlowItem in berlin.yuna.survey.model.types
Classes in berlin.yuna.survey.model.types with type parameters of type FlowItem Modifier and Type Class Description class
FlowItem<T,C extends FlowItem<T,C>>
Subclasses of FlowItem in berlin.yuna.survey.model.types Modifier and Type Class Description class
Question
class
QuestionBool
class
QuestionInt
class
QuestionList
class
QuestionLong
Methods in berlin.yuna.survey.model.types with type parameters of type FlowItem Modifier and Type Method Description <I extends FlowItem<?,?>>
Optional<I>FlowItem. find(I search)
SearchFlowItem
in current flow<I extends FlowItem<?,?>>
Optional<I>FlowItem. get(I type)
Get a flow item by the givenFlowItem
<I extends FlowItem<?,?>>
IFlowItem. getOrElse(I type, I fallback)
Get a flow item by thistype
protected <I extends FlowItem<?,?>>
ITransitionSet. pointToAndGet(I target, Condition<T> condition, Function<T,Boolean> function)
<I extends FlowItem<?,?>>
IFlowItem. targetGet(I target)
Defines a transition target oftargets()
<I extends FlowItem<?,?>>
IFlowItem. targetGet(I target, Condition<T> condition)
Defines a transition target oftargets()
<I extends FlowItem<?,?>>
IFlowItem. targetGet(I target, Function<T,Boolean> condition)
Defines a transition target oftargets()
Methods in berlin.yuna.survey.model.types that return FlowItem Modifier and Type Method Description protected FlowItem<T,?>
TransitionSet. backCondition(Condition<T> condition, Function<T,Boolean> function)
FlowItem<?,?>
FlowItem. getOrElse(Enum<?> label, FlowItem<?,?> fallback)
Get a flow item by thisenum
FlowItem<?,?>
FlowItem. getOrElse(String label, FlowItem<?,?> fallback)
Get a flow item by thisString
Methods in berlin.yuna.survey.model.types that return types with arguments of type FlowItem Modifier and Type Method Description Optional<FlowItem<?,?>>
FlowItem. answer(T answer)
Returns nextFlowItem
which is configured for a back transitionSet<FlowItem<?,?>>
TransitionSet. backwardTargets()
Set<FlowItem<?,?>>
TransitionSet. forwardTargets()
Optional<FlowItem<?,?>>
FlowItem. get(Enum<?> label)
Get a flow item by the givenenum
Optional<FlowItem<?,?>>
FlowItem. get(String label)
Get a flow item by the givenString
Set<FlowItem<?,?>>
FlowItem. parents()
Returns aSet
with all configured targetsOptional<FlowItem<?,?>>
FlowItem. parseAndAnswer(ContextExchange context)
Returns nextFlowItem
which is configured for a back transitionSet<FlowItem<?,?>>
FlowItem. targets()
Returns aSet
with all configured targetsSet<FlowItem<?,?>>
FlowItem. targetsBack()
Returns aSet
with all configured targetsMethods in berlin.yuna.survey.model.types with parameters of type FlowItem Modifier and Type Method Description protected void
FlowItem. addParent(FlowItem<?,?> parent)
int
FlowItem. compareTo(FlowItem o)
FlowItem<?,?>
FlowItem. getOrElse(Enum<?> label, FlowItem<?,?> fallback)
Get a flow item by thisenum
FlowItem<?,?>
FlowItem. getOrElse(String label, FlowItem<?,?> fallback)
Get a flow item by thisString
C
FlowItem. target(FlowItem<?,?> target)
Defines a transition target oftargets()
A previous target without conditions will be overwrittenC
FlowItem. target(FlowItem<?,?> target, Condition<T> condition)
Defines a transition target oftargets()
C
FlowItem. target(FlowItem<?,?> target, Class<? extends Condition<?>> condition)
Defines a transition target oftargets()
C
FlowItem. target(FlowItem<?,?> target, Function<T,Boolean> condition)
Defines a transition target oftargets()
Constructors in berlin.yuna.survey.model.types with parameters of type FlowItem Constructor Description TransitionSet(FlowItem<T,?> flowItem)
-