Class GenericContext

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • supportedProducts

        private final java.util.Set<java.lang.String> supportedProducts
    • Constructor Detail

      • GenericContext

        public GenericContext​(java.util.Collection<java.lang.String> supportedProducts)
        Creates a Generic Context instance with support of provided namespaces and products.
        Parameters:
        supportedProducts - is a collection of supported products
    • Method Detail

      • isAllowed

        public boolean isAllowed​(AbstractContextBasedITextEvent event)
        Checks if the source product of the event is supported by the context.
        Specified by:
        isAllowed in interface IContext
        Parameters:
        event - is an event to test
        Returns:
        true if event is allowed by the actual context and false otherwise