Class ContextualPredicate

java.lang.Object
ddf.catalog.pubsub.predicate.ContextualPredicate
All Implemented Interfaces:
Predicate

public class ContextualPredicate extends Object implements Predicate
  • Constructor Details

    • ContextualPredicate

      public ContextualPredicate(String searchPhrase, boolean fuzzy, boolean caseSensitiveSearch, Collection<String> textPaths)
  • Method Details

    • isContextual

      public static boolean isContextual(String searchPhrase)
    • normalizePhrase

      public static String normalizePhrase(String inputPhrase, boolean isFuzzy)
      Normalizes a search phrase for a Lucene query
      Parameters:
      inputPhrase - the input phrase
      isFuzzy - true indicates the criteria is fuzzy
      Returns:
      a search phrase aligned to Lucene syntax
    • matches

      public boolean matches(org.osgi.service.event.Event properties)
      Specified by:
      matches in interface Predicate
    • getSearchPhrase

      public String getSearchPhrase()
    • isFuzzy

      public boolean isFuzzy()
    • isCaseSensitive

      public boolean isCaseSensitive()
    • hasTextPaths

      public boolean hasTextPaths()
    • getTextPaths

      public Collection<String> getTextPaths()
    • toString

      public String toString()
      Overrides:
      toString in class Object