Class DefaultFilter

  • All Implemented Interfaces:
    Filter, LogicalStatement, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public class DefaultFilter
    extends Object
    implements Filter
    The default filter, a very simple implementation of Filter / LogicalStatement The idea is to have this as a wrapper / root class for all logical operations, so it takes a single statement as a property (unlike an operator) and takes no parameters (unlike a condition)
    Author:
    Kim Shepherd
    • Constructor Detail

      • DefaultFilter

        public DefaultFilter()
    • Method Detail

      • setStatement

        public void setStatement​(LogicalStatement statement)
        Set statement from Spring configuration in item-filters.xml Be aware that this is singular not plural. A filter can have one sub-statement only.
        Parameters:
        statement - LogicalStatement of this filter (operator, condition, or another filter)
      • setBeanName

        public void setBeanName​(String name)
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • getName

        public String getName()
        Description copied from interface: Filter
        Get the name of a filter. This can be used by filters which make use of BeanNameAware to return the bean name.
        Specified by:
        getName in interface Filter
        Returns:
        the id/name of this spring bean