Class FilterParser


  • public final class FilterParser
    extends java.lang.Object
    Encapsulates a FilterFunction and exposes a convenience static method for parsing filters. The filter function used by this class can be set using the system property FILTER_FUNCTION_PROPERTY.
    Author:
    Middleware Services
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FilterFunction getFilterFunction()
      The FILTER_FUNCTION_PROPERTY property is checked and that class is loaded if provided.
      static Filter parse​(java.lang.String filter)
      Parse the supplied filter string.
      • Methods inherited from class java.lang.Object

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

      • getFilterFunction

        public static FilterFunction getFilterFunction()
        The FILTER_FUNCTION_PROPERTY property is checked and that class is loaded if provided. Otherwise the DefaultFilterFunction is returned.
        Returns:
        default filter function
      • parse

        public static Filter parse​(java.lang.String filter)
                            throws FilterParseException
        Parse the supplied filter string.
        Parameters:
        filter - to parse
        Returns:
        search filter
        Throws:
        FilterParseException - if filter is invalid