public class PlanItemStateExtractor extends Object implements PlanItemVisitor
A visitor which is able to extract the state from a case model (structure) and save it in the internal modelState
object.
Constructor and Description |
---|
PlanItemStateExtractor(CasePlanModelData modelState) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(PlanItem planItem,
TransitionData transitionData)
Called once after all structure objects have been visited.
|
boolean |
enter(PlanItem planItem,
TransitionData transitionData)
Called for each plan item just before the plan item is visited.
|
void |
exit(PlanItem planItem,
TransitionData transitionData)
Called for each plan item just after the plan item has been visited.
|
void |
init(PlanItem planItem,
TransitionData transitionData)
Called once before any other calls in this interface.
|
public PlanItemStateExtractor(CasePlanModelData modelState)
modelState
- the object into which the model state gathered from applying the visitor is stored.public void init(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called once before any other calls in this interface.
init
in interface PlanItemVisitor
planItem
- the case plan model (the root).public boolean enter(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called for each plan item just before the plan item is visited.
enter
in interface PlanItemVisitor
planItem
- the plan item of interest.transitionData
- optional evaluation context.true
to recurse into a stage’s children.public void exit(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called for each plan item just after the plan item has been visited.
exit
in interface PlanItemVisitor
planItem
- the plan item of interest.public void cleanup(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called once after all structure objects have been visited.
cleanup
in interface PlanItemVisitor
planItem
- the case plan item (the root).Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.