public class DialogState extends Object
| Constructor and Description |
|---|
DialogState(Dialog dialog,
StatementContext parentContext,
StateCoordination coordination) |
| Modifier and Type | Method and Description |
|---|---|
QName |
activateBranch(InteractionUnit unit) |
QName |
activateBranch(InteractionUnit unit,
String suffix) |
void |
activateScope(QName targetUnit)
Deactivates a previously active sibling scope and activate a new one.
|
boolean |
canBeActivated(QName interactionUnit)
A unit can be activated if the parent is a demarcation type
or it is a root element
|
void |
clearStatement(QName sourceId,
String key) |
void |
flushChildScopes(QName unitId)
Flush the scope of unit and all children.
|
StatementContext |
getContext(QName unitId) |
boolean |
isWithinActiveScope(QName unitId)
Is within active scope when itself and all it's parent scopes are active as well.
|
void |
reset() |
void |
setStatement(QName interactionUnitId,
String key,
String value) |
public DialogState(Dialog dialog, StatementContext parentContext, StateCoordination coordination)
public void reset()
public QName activateBranch(InteractionUnit unit)
public QName activateBranch(InteractionUnit unit, String suffix)
public void activateScope(QName targetUnit)
targetUnit - the unit from which the scope will be derivedpublic void flushChildScopes(QName unitId)
unitId - public StatementContext getContext(QName unitId)
public boolean canBeActivated(QName interactionUnit)
interactionUnit - public boolean isWithinActiveScope(QName unitId)
unitId - Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.