Package org.chenile.stm.model
Class EventInformation
java.lang.Object
org.chenile.stm.model.EventInformation
- Direct Known Subclasses:
Transition
An abstraction to extract actions and their meta data and share them across transitions.
An event and a transition are two different things.
Different transitions can potentially generate the same event.
This captures all the event information in one place. In this way, the same event information
does not have to be repeated for every transition.
- Author:
- Raja Shankar Kolluru
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
static final String
protected String
boolean
Specifies if this information belongs to tag definition or in from event-informationprotected STMTransitionAction<?>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMetaData
(String name, String value) getTag()
Merges tag definition as defined in the add-transition-tag
(which is contained in this event information) with the event information defined in the "event-information" tag.void
setEventId
(String eventId) void
void
setTransitionAction
(STMTransitionAction<?> transitionAction) transitionAction
(STMTransitionAction<?> transitionAction)
-
Field Details
-
GENERIC_EVENT_ID
- See Also:
-
tagDefinition
public boolean tagDefinitionSpecifies if this information belongs to tag definition or in from event-information -
tag
-
eventId
-
eventIdTag
-
componentNameTag
-
newStateIdTag
-
newFlowIdTag
-
transitionAction
-
newFlowId
-
newStateId
-
metadata
-
-
Constructor Details
-
EventInformation
public EventInformation()
-
-
Method Details
-
getTag
-
setTag
-
getEventId
-
setEventId
-
id
-
getTransitionAction
-
setTransitionAction
-
transitionAction
-
addMetaData
-
getMetadata
-
mergeTagDefinitionWithEventInformation
Merges tag definition as defined in the add-transition-tag
(which is contained in this event information) with the event information defined in the "event-information" tag.
Tag information can be overridden by event-information- Parameters:
other
- the event information to merge with this is from <event-information> tag- Returns:
- the merged information as a copy
-