Class FilterAbstract

  • All Implemented Interfaces:
    Filter
    Direct Known Subclasses:
    AbstractFilter

    public abstract class FilterAbstract
    extends Object
    implements Filter
    Abstract implementation for Filter.
    Author:
    Jody Garnett
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FilterAbstract()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accepts​(SimpleFeature feature)
      Straight call throught to: evaulate( feature )
      protected Object eval​(Expression expression, Object object)
      Helper method for subclasses to reduce null checks and automatically unpack values from attributes and collections
      protected Object eval​(Expression expression, Object object, Class<?> context)
      Helper method for subclasses to reduce null checks
      • Methods inherited from class Object

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

      • FilterAbstract

        protected FilterAbstract()
    • Method Detail

      • accepts

        public boolean accepts​(SimpleFeature feature)
        Straight call throught to: evaulate( feature )
      • eval

        protected Object eval​(Expression expression,
                              Object object)
        Helper method for subclasses to reduce null checks and automatically unpack values from attributes and collections
        Returns:
        value or null
      • eval

        protected Object eval​(Expression expression,
                              Object object,
                              Class<?> context)
        Helper method for subclasses to reduce null checks
        Returns:
        value or null