Class AbstractEventWrapper
- All Implemented Interfaces:
IEvent
- Direct Known Subclasses:
ConfirmedEventWrapper, ConfirmEvent
Base class to wrap events.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEventWrapper(AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper for the event.protectedAbstractEventWrapper(SequenceId updatedSequenceId, AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper of event associated withSequenceId. -
Method Summary
Methods inherited from class AbstractProductProcessITextEvent
getConfirmationType, getSequenceIdMethods inherited from class AbstractContextBasedITextEvent
getMetaInfo, setMetaInfoMethods inherited from class AbstractProductITextEvent
getProductData, getProductNameMethods inherited from class AbstractITextEvent
registerNamespace
-
Field Details
-
event
-
-
Constructor Details
-
AbstractEventWrapper
protected AbstractEventWrapper(AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper for the event.- Parameters:
event- is aAbstractProductProcessITextEventto wrapconfirmationType- event confirmation type
-
AbstractEventWrapper
protected AbstractEventWrapper(SequenceId updatedSequenceId, AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper of event associated withSequenceId.- Parameters:
updatedSequenceId- is aSequenceIdfor the document. May be different with sequence id of original eventevent- is aAbstractProductProcessITextEventto wrapconfirmationType- event confirmation type
-
-
Method Details
-
getEvent
Obtains the wrapped event.- Returns:
- wrapped event
-
getClassFromContext
Obtains the class from context of the wrapped event.- Overrides:
getClassFromContextin classAbstractContextBasedITextEvent- Returns:
- class from context
-
getEventType
Obtains the event type of the wrapped event.- Specified by:
getEventTypein classAbstractProductProcessITextEvent- Returns:
- event type
-