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 aAbstractProductProcessITextEvent
storing 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.String
producerLine
private java.lang.String
productUsageType
-
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.String
getProducerLine()
Gets producer line defined by theITextProductEventProcessor
which registered the event.java.lang.String
getProductUsageType()
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 aAbstractProductProcessITextEvent
to wrapproductUsageType
- is a product usage markerproducerLine
- is a producer line defined by theITextProductEventProcessor
which 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 theITextProductEventProcessor
which registered the event.- Returns:
- producer line
-
-