Class SimpleFilter


  • public class SimpleFilter
    extends java.lang.Object
    • Method Detail

      • getName

        public java.lang.String getName()
      • getValue

        public java.lang.Object getValue()
      • getOperation

        public int getOperation()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • parse

        public static SimpleFilter parse​(java.lang.String filter)
      • parseSubstring

        public static java.util.List<java.lang.String> parseSubstring​(java.lang.String value)
      • unparseSubstring

        public static void unparseSubstring​(java.lang.StringBuilder sb,
                                            java.util.List<?> pieces)
      • compareSubstring

        public static boolean compareSubstring​(java.util.List<java.lang.String> pieces,
                                               java.lang.String s)
      • convert

        public static SimpleFilter convert​(java.util.Map<java.lang.String,​java.lang.Object> attrs)
        Converts a attribute map to a filter. The filter is created by iterating over the map's entry set. If ordering of attributes is important (e.g., for hitting attribute indices), then the map's entry set should iterate in the desired order. Equality testing is assumed for all attribute types other than version ranges, which are handled appropriated. If the attribute map is empty, then a filter that matches anything is returned.
        Parameters:
        attrs - Map of attributes to convert to a filter.
        Returns:
        A filter corresponding to the attributes.