Class ChainedEventFilterTag

  • All Implemented Interfaces:
    ConditionalTag, PropertySupport, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.Tag
    Direct Known Subclasses:
    AndEventFilterTag, OrEventFilterTag

    public class ChainedEventFilterTag
    extends EventFilterTag

    A specialized event filter class that deals with chained filters, i.e. event filters that can child event filters.

    This tag handler class adds an additional addChildFilter method to the methods inherited by its super class. This method will be called by EventFilterTag if it detects that it is nested inside a chained filter definition.

    Version:
    $Id: ChainedEventFilterTag.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Constructor Detail

      • ChainedEventFilterTag

        public ChainedEventFilterTag()
        Creates a new instance of ChainedEventFilterTag.
      • ChainedEventFilterTag

        public ChainedEventFilterTag​(Class<?> defaultClass)
        Creates a new instance of ChainedEventFilterTag and sets the default class.
        Parameters:
        defaultClass - the default class
    • Method Detail

      • addChildFilter

        public void addChildFilter​(EventFilter child)
        Adds the specified event filter to the list of child filters of the current chained filter tag.
        Parameters:
        child - the child filter
      • passResults

        protected boolean passResults​(Object bean)
                               throws org.apache.commons.jelly.JellyTagException
        Performs post processing of the new bean. This implementation adds the child filters to the new chained filter if there are any.
        Overrides:
        passResults in class EventFilterTag
        Parameters:
        bean - the new bean
        Returns:
        a flag whether the bean could be passed to a target
        Throws:
        org.apache.commons.jelly.JellyTagException - if an error occurs