Class NativeFilterImpl

  • All Implemented Interfaces:
    Filter, NativeFilter

    public final class NativeFilterImpl
    extends Object
    implements NativeFilter
    Default implementation of a native filter that works like an holder for the native expression. This should be enough for most of the situations.
    • Constructor Summary

      Constructors 
      Constructor Description
      NativeFilterImpl​(String nativeFilter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object accept​(FilterVisitor visitor, Object extraData)
      Accepts a visitor.
      boolean equals​(Object other)  
      boolean evaluate​(Object object)
      Give an object, this method determines if the test(s) represented by this filter object are passed.
      String getNative()
      Returns the native filter expression defined in the target data source language.
      int hashCode()  
      String toString()  
      • Methods inherited from class Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NativeFilterImpl

        public NativeFilterImpl​(String nativeFilter)
    • Method Detail

      • getNative

        public String getNative()
        Description copied from interface: NativeFilter
        Returns the native filter expression defined in the target data source language.
        Specified by:
        getNative in interface NativeFilter
        Returns:
        the native expression defined in the target data source language.
      • evaluate

        public boolean evaluate​(Object object)
        Description copied from interface: Filter
        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.

        Specified by:
        evaluate in interface Filter
        Returns:
        true if the test(s) are passed for the provided object
      • accept

        public Object accept​(FilterVisitor visitor,
                             Object extraData)
        Description copied from interface: Filter
        Accepts a visitor.

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

        return visitor.visit(this, extraData);
        Specified by:
        accept in interface Filter
      • equals

        public boolean equals​(Object other)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object