Class ConfirmedEventWrapper
- java.lang.Object
-
- com.itextpdf.commons.actions.AbstractITextEvent
-
- com.itextpdf.commons.actions.AbstractProductITextEvent
-
- com.itextpdf.commons.actions.AbstractContextBasedITextEvent
-
- com.itextpdf.commons.actions.AbstractProductProcessITextEvent
-
- com.itextpdf.commons.actions.AbstractEventWrapper
-
- com.itextpdf.commons.actions.confirmations.ConfirmedEventWrapper
-
- All Implemented Interfaces:
IEvent
public class ConfirmedEventWrapper extends AbstractEventWrapper
A wrapper for aAbstractProductProcessITextEventstoring additional data about the event. If wrapped event is immutable then the instance of the wrapper is immutable too.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringproducerLineprivate java.lang.StringproductUsageType
-
Constructor Summary
Constructors Constructor Description ConfirmedEventWrapper(AbstractProductProcessITextEvent event, java.lang.String productUsageType, java.lang.String producerLine)Creates a wrapper for the event with additional data about the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProducerLine()Gets producer line defined by theITextProductEventProcessorwhich registered the event.java.lang.StringgetProductUsageType()Obtains the license type for the product which generated the event.-
Methods inherited from class com.itextpdf.commons.actions.AbstractEventWrapper
getClassFromContext, getEvent, getEventType
-
Methods inherited from class com.itextpdf.commons.actions.AbstractProductProcessITextEvent
getConfirmationType, getSequenceId
-
Methods inherited from class com.itextpdf.commons.actions.AbstractContextBasedITextEvent
setMetaInfo
-
Methods inherited from class com.itextpdf.commons.actions.AbstractProductITextEvent
getProductData, getProductName
-
-
-
-
Constructor Detail
-
ConfirmedEventWrapper
public ConfirmedEventWrapper(AbstractProductProcessITextEvent event, java.lang.String productUsageType, java.lang.String producerLine)
Creates a wrapper for the event with additional data about the event.- Parameters:
event- is aAbstractProductProcessITextEventto wrapproductUsageType- is a product usage markerproducerLine- is a producer line defined by theITextProductEventProcessorwhich registered the event
-
-
Method Detail
-
getProductUsageType
public java.lang.String getProductUsageType()
Obtains the license type for the product which generated the event.- Returns:
- product usage type
-
getProducerLine
public java.lang.String getProducerLine()
Gets producer line defined by theITextProductEventProcessorwhich registered the event.- Returns:
- producer line
-
-