Class GenericContext
- java.lang.Object
-
- com.itextpdf.commons.actions.contexts.GenericContext
-
- All Implemented Interfaces:
IContext
public class GenericContext extends java.lang.Object implements IContext
Generic context that allowsAbstractContextBasedITextEvent
based on the whitelist of supported events.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>
supportedProducts
-
Constructor Summary
Constructors Constructor Description GenericContext(java.util.Collection<java.lang.String> supportedProducts)
Creates a Generic Context instance with support of provided namespaces and products.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowed(AbstractContextBasedITextEvent event)
Checks if the source product of the event is supported by the context.
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed(AbstractContextBasedITextEvent event)
Checks if the source product of the event is supported by the context.
-
-