Package com.itextpdf.commons.actions
Class AbstractEventWrapper
- java.lang.Object
-
- All Implemented Interfaces:
IEvent
- Direct Known Subclasses:
ConfirmedEventWrapper,ConfirmEvent
public abstract class AbstractEventWrapper extends AbstractProductProcessITextEvent
Base class to wrap events.
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractProductProcessITextEventevent
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEventWrapper(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getClassFromContext()Obtains the class from context of the wrapped event.AbstractProductProcessITextEventgetEvent()Obtains the wrapped event.java.lang.StringgetEventType()Obtains the event type of the wrapped event.-
Methods inherited from class com.itextpdf.commons.actions.AbstractProductProcessITextEvent
getConfirmationType, getSequenceId
-
Methods inherited from class com.itextpdf.commons.actions.AbstractContextBasedITextEvent
getMetaInfo, setMetaInfo
-
Methods inherited from class com.itextpdf.commons.actions.AbstractProductITextEvent
getProductData, getProductName
-
Methods inherited from class com.itextpdf.commons.actions.AbstractITextEvent
registerNamespace
-
-
-
-
Field Detail
-
event
private final AbstractProductProcessITextEvent event
-
-
Constructor Detail
-
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 Detail
-
getEvent
public AbstractProductProcessITextEvent getEvent()
Obtains the wrapped event.- Returns:
- wrapped event
-
getClassFromContext
public java.lang.Class<?> getClassFromContext()
Obtains the class from context of the wrapped event.- Overrides:
getClassFromContextin classAbstractContextBasedITextEvent- Returns:
- class from context
-
getEventType
public java.lang.String getEventType()
Obtains the event type of the wrapped event.- Specified by:
getEventTypein classAbstractProductProcessITextEvent- Returns:
- event type
-
-