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 SummaryFieldsModifier and TypeFieldDescriptionprotected Stringstatic final Stringprotected StringbooleanSpecifies if this information belongs to tag definition or in from event-informationprotected STMTransitionAction<?>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.voidsetEventId(String eventId) voidvoidsetTransitionAction(STMTransitionAction<?> transitionAction) transitionAction(STMTransitionAction<?> transitionAction) 
- 
Field Details- 
GENERIC_EVENT_ID- See Also:
 
- 
tagDefinitionpublic 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- 
EventInformationpublic EventInformation()
 
- 
- 
Method Details- 
getTag
- 
setTag
- 
getEventId
- 
setEventId
- 
id
- 
getTransitionAction
- 
setTransitionAction
- 
transitionAction
- 
addMetaData
- 
getMetadata
- 
mergeTagDefinitionWithEventInformationMerges 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
 
 
-