Interface Filter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ExcludeFilter EXCLUDE
      Placeholder Filter that evaulates to false.
      static IncludeFilter INCLUDE
      Placeholder Filter that evaulates to true.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Object accept​(FilterVisitor visitor, Object extraData)
      Accepts a visitor.
      boolean evaluate​(Object object)
      Give an object, this method determines if the test(s) represented by this filter object are passed.
    • Field Detail

      • INCLUDE

        static final IncludeFilter INCLUDE
        Placeholder Filter that evaulates to true.

        Filtering a set with Filter.INCLUDE results in the origional set.

      • EXCLUDE

        static final ExcludeFilter EXCLUDE
        Placeholder Filter that evaulates to false.

        Filtering a set with Filter.EXCLUDE results in the empty Set.

    • Method Detail

      • evaluate

        boolean evaluate​(Object object)
        Give an object, this method determines if the test(s) represented by this filter object are passed.

        This ability is used to allow Queries against both Features and and non spatial data (such as Record) and to express constraints on permissable data values.

        Returns:
        true if the test(s) are passed for the provided object
      • accept

        Object accept​(FilterVisitor visitor,
                      Object extraData)
        Accepts a visitor.

        Implementations of all subinterfaces must have with a method whose content is the following:

        return visitor.visit(this, extraData);