Class SearchContext

java.lang.Object
com.webmethods.portal.service.task.SearchContext

public class SearchContext extends Object
Class for defining a search context, used during TaskEngine searches
  • Constructor Details

    • SearchContext

      public SearchContext()
      Default constructor.
  • Method Details

    • get

      public <T> T get(SearchKey<T> key, T defaultVal)
      Gets a value from the context by a given key.
      Type Parameters:
      T - - the value type
      Parameters:
      key - - the key
      defaultVal - - the default value
      Returns:
      the found value by the supplied key or the default one
    • put

      public <T> void put(SearchKey<T> key, T value)
      Puts a key in the context.
      Type Parameters:
      T - - the value type
      Parameters:
      key - - the key
      value - - the value
    • toString

      public String toString()
      Overrides:
      toString in class Object